How to Put My Router as DNS in Fedora

How to Put My Router as DNS in Fedora thumbnail
Layers of complex protocols that include DNS must work together to complete a simple online transaction.

Internet access using URL (Universal Resource Locator) addresses for Web sites would not work without the DNS (Domain Name System) functionality built into most computer operating systems. The Fedora Linux distribution includes DNS functionality that can be statically configured by editing the "resolv.conf" DNS file. Use the "GEdit" utility to change the Fedora DNS client configuration so that the computer uses your local gateway router rather than a DNS server on the Internet.

Things You'll Need

  • Root password of the Fedora computer
  • Router that supports DNS services
Show More

Instructions

    • 1

      Click the "Applications" icon in the Fedora taskbar, click "System Tools" and then click "Terminal." A command line terminal window will appear.

    • 2

      Type "su" at the command prompt and press the "Enter" key. When prompted type the root account password and press "Enter" again.

    • 3

      Type "route -n" at the command prompt and press "Enter." View the command line output and note the IP address in the "Gateway" column that is in the same row as the "0.0.0.0" address in the "Destination" column.

    • 4

      Type "gedit /etc/resolv.conf" and press "Enter." Use the arrow keys to navigate to the first line that starts with the word "nameserver".

    • 5

      Delete each line that starts with the word "nameserver". Type "nameserver x.x.x.x" in place of the deleted "nameserver" lines and replace "x.x.x.x" with the gateway IP address noted in Step 3.

    • 6

      Click the "File" menu item near the top of the "GEdit" window and click "Save."

    • 7

      Reboot the computer.

Related Searches:

References

  • Photo Credit Digital Vision./Digital Vision/Getty Images

Comments

Related Ads

Featured