Find the answer to your Linux question:
Results 1 to 4 of 4
Is there a way to set two DNS addresses in the /etc/network/interfaces file on a Debian OS. one as the primary and the other as the secondary....
  1. #1
    Just Joined!
    Join Date
    Nov 2008
    Posts
    4

    Multiple DNS Addresses

    Is there a way to set two DNS addresses in the /etc/network/interfaces file on a Debian OS. one as the primary and the other as the secondary.

  2. #2
    Just Joined! monday90's Avatar
    Join Date
    Oct 2006
    Location
    United Kingdom
    Posts
    82
    In /etc/resolv.conf your DNS servers are listed. To put in the primary and secondary or even teritary simply put:

    nameserver ip.address.of.primary

    nameserver ip.address.of.secondary

    nameserver ip.address.of.teritary

    Points to note: If you have an automated helper like NetworkManager running it will regularly overwrite this file. You will need to stop it.
    Last edited by monday90; 11-04-2008 at 08:54 PM. Reason: Edited for spelling and grammar

  3. #3
    Just Joined!
    Join Date
    Nov 2008
    Posts
    4

    Correction

    Thanx for the response.

    But I need to set multiple DNS Addresses when DHCP is disabled.
    As i know the /etc/resolve.conf file is updated when DHCP is enabled.
    So i need to edit the /etc/network/interfaces file for static settings.
    There i have already set a DNS address.
    Ex:
    dns-nameservers 192.168.102.8

    My question is how to set multiple DNS Addresses to this interfaces file on a Debian OS.
    One as a Primary and the other as Secondary.
    Please help me to resolve this issue.

  4. #4
    Just Joined!
    Join Date
    Oct 2008
    Posts
    14
    You just put all the nameservers on the line. In the order you want to search them.

    dns-nameservers 10.0.0.10 10.1.1.10 10.2.2.10

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •