Click to See Complete Forum and Search --> : Dns


onlythetony
04-09-2003, 06:07 PM
Hi guys,

I'm hoping you can help me solve a problem (well, more of an annoyance really).

I'm running SuSE 8.1 as part of my network, primarily as an SMTP relay, SAMBA sharing etc, which is configured using DHCP from a router.
I have a domain name "onlythetony.com" so when I configured the machine I called it, for lack of anything better, "linux.onlythetony.com".

My problem is this -
It appears to be trying to use the nameservers of my domain name for certain functions (eg if I do smbclient -M it tries to search the remote nameservers for the local network machine), and also if it cannot find a webpage it defaults to a specific root page on the webserver hosting my website.
This also applies to other machines on the network when the Linux machine is switched on although I don't think I consciously set it up as a DNS server.

Is there any way I can stop it doing this and only use the DHCP assigned nameservers (ie those of my ISP)?

Like I said.. it's not a major problem, just a mild annoyance - but any help would be appreciated.

Thanks,

Tee

baldguy
04-09-2003, 06:41 PM
Your router is fetching an address from your ISP and serving your internal network with ip addresses and dns servers. Probably what you want to do is change the settings on your router to add your dns server into the list being supplied (and probably before the other dns servers)

onlythetony
04-09-2003, 06:45 PM
Sorry.. I don't think I made it clear. I DON'T want my Linux machine to act as a DNS server, which is what it is currently doing, as it is causing chaos with the network.

chrism01
04-09-2003, 07:05 PM
Check your /etc/resolv.conf and make sure only your isp dns servers + search domain are in there.

onlythetony
04-09-2003, 07:25 PM
Thanks for that.

I had to do a bit of tweaking - turns out it was looking at my website's nameservers as part of the search pattern because the DHCP server was assigning the "onlythetony.com" domain to the entire network. I've changed the way the DHCP is configured and all seems to be well.
Thanks to everyone for their help.