Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    How to specify a default nameserver in /etc/resolv.conf

    Hello all,
    The Internet connection in my network is accessed through a Fedora Core 3. This machine acts as the router and as a development machine in the network. One of the ethernet interface is configured to assign the IP address through DHCP (of the ISP). The contents in the /etc/resolv.conf is automatically assigned by the dhcp server at the ISP part.
    There is also a local nameserver in my network. Now I need to have the IP address of the local nameserver in the /etc/resolv.conf. Is there any way to put some default values through dhclient? Please advice me how to do it?

  2. #2
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    You can either have your DHCP server specify the DNS, or put 'supersede domain-name-servers' in your /etc/dhclient.conf file, replacing with the DNS server you want to use.
    "Time is an illusion. Lunchtime, doubly so."
    ~Douglas Adams, The Hitchhiker's Guide to the Galaxy

Posting Permissions

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