LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Setting default dns (https://www.linuxquestions.org/questions/linux-server-73/setting-default-dns-635596/)

BinarySpike 04-15-2008 05:57 PM

Setting default dns
 
Hello, I have recently setup bind9 and would like to set it as my default dns on my linux. (right now nslookup is saying "Server: 192.168.0.1" which is my router)

Basically, I want a dns that has like 1 zone, then if the user tries to pull up google.com it will use their main dns. (I don't want to route my home computer through my works ISP's DNS)

I'm a computer consultant, and although I know quite a lot about unix-like operating systems, I don't know where all the configuration files for linux are. (specifically the dns my linux pulls from by default)

Simply, How do I set my debian's default dns from 192.168.0.1 (router) to 192.168.0.101 (localhost)?

twantrd 04-15-2008 07:05 PM

Check out /etc/resolv.conf

-twantrd

BinarySpike 04-16-2008 10:04 AM

Quote:

Originally Posted by twantrd (Post 3122447)
Check out /etc/resolv.conf

-twantrd

Wow thanks!


All times are GMT -5. The time now is 05:47 AM.