Power Global

 View Only
Expand all | Collapse all

How do you configure DNS on VIOS?

  • 1.  How do you configure DNS on VIOS?

    Posted Wed June 21, 2023 10:32 AM

    I am running 3.1.4.21 of VIOS.

    Recently I was trying stuff like sending a file and it quickly became apparent that there were no binding to any DNS servers set up on this lpar of vios.

    I tried a few google searches and got no where.  How do I set it up so the following works?

    $ ping ibm.com
    Some error messages may contain invalid information
    for the Virtual I/O Server environment.
    0821-062 ping: host name ibm.com NOT FOUND
    I know the IP addresses of our internal DNS servers.  I just don't know how to enter them in VIOS.


    ------------------------------
    Robert Berendt IBMChampion
    ------------------------------


  • 2.  RE: How do you configure DNS on VIOS?

    Posted Wed June 21, 2023 10:36 AM

    Is this it?

    https://www.ibm.com/docs/en/aix/7.1?topic=resolution-configuring-host-use-name-server

    If so, now I have to figure out how to edit a file on VIOS.  I'm more of an IBM i guy.



    ------------------------------
    Robert Berendt IBMChampion
    ------------------------------



  • 3.  RE: How do you configure DNS on VIOS?

    Posted Wed June 21, 2023 11:03 AM

    That worked.  I did a touch to create the file.  Used binary ftp (by ip address) to an IBM i.  Used edtf to edit it to look like

    domain dekko.com
    nameserver 10.10.4.250
    nameserver 10.27.4.180
    nameserver 10.17.4.180
    search corp.dekko.com dekko-1

    Then I used binary ftp to get it back.  Now ping by name works.



    ------------------------------
    Robert Berendt IBMChampion
    ------------------------------



  • 4.  RE: How do you configure DNS on VIOS?

    Posted Thu June 22, 2023 11:20 AM

    I love the approach that you used Robert.  Sometimes we have to jump through some hoops and solve a problem with the tools that we have at our disposal!



    ------------------------------
    Steven Riedmueller Certified IBM i Admin - Speaker, Mentor, and Advocate
    ------------------------------



  • 5.  RE: How do you configure DNS on VIOS?

    Posted Thu June 22, 2023 08:42 PM
    Your resolv.conf file is not self-consistent.

    Do you want short names to be resolved with "dekko.com" or "corp.dekko.com"? Your current config will never try "dekko.com". Also, "domain" and "search" are mutually exclusive, and "domain" has been deprecated for some time.

    As mentioned by others, cfgnamesrv is the VIOS-approved way to configure the resolver.

    -- 
    Stephen L. Ulmer
    Enterprise Architect
    Mainline Information Systems

    This e-mail and files transmitted with it are confidential, and are intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you are not one of the named recipient(s) or otherwise have reason to believe that you received this message in error, please immediately notify sender by e-mail, and destroy the original message.





  • 6.  RE: How do you configure DNS on VIOS?

    Posted Wed June 28, 2023 02:02 PM

    Thank you.  Something led me to believe that dekko.com would automatically be in the search list since it was the domain.  I tested that by adding three names to our dns:  gollum.dekko.com, mordor.corp.dekko.com and sauron.dekko-1.  Then I tried a ping by short name only.  The former one, gollum, did not resolve.  The latter two did.  I'll fix that.



    ------------------------------
    Robert Berendt IBMChampion
    ------------------------------



  • 7.  RE: How do you configure DNS on VIOS?

    Posted Thu June 22, 2023 02:45 AM

    Hi Robert,

    one of the first commands you usuall do on a fresh installed VIO is mktcpip. The command let you set IP address and DNS settings on your VIO server. If you don't want to reconfigure your complete TCP/IP stack you can use the command cfgnamesrv which exists specifically for DNS configuration.

    cfgnamesrv  -add  -ipaddr 192.9.201.1 


    ------------------------------
    Andrey Klyachkin

    https://www.power-devops.com
    ------------------------------