How to set DNS server


Forum: Networking
Topic: How to set DNS server
started by: smohrman

Posted by smohrman on Nov. 17 2005,17:10
Hi,

Sorry for such a simple question...I just booted an Amax laptop with DSL and I LOVE it.  DSL booted the laptop that wouldn't boot under windows...

Anyway, I'm on a LAN and need to tell DSL the IP of my intranet DNS server.  I can't seem to find the option in the control panel, and it's probably a command I'm not familiar with...

Any help out there?

Smohrman-

"Ever imagine a world without any hypothetical situations?"

Posted by smohrman on Nov. 17 2005,18:32
OK, nevermind...

I wanted to view a webpage hosted on my LAN, and DSL wouldn't pull it up.  I could browse the web and ping internet sites, so after all it appears DSL did in fact pull down the correct DNS info at boot.  I still could not resolve the local hostname though to pull up the page, which info is on the same local DNS server.  Putting in the host's IP and port did work though...DUH!

Smohrman :-D

Posted by NotTheMama on Nov. 18 2005,07:53
Hi, the dns server(s) can be added to /etc/resolv.conf (no e at the end of resolv).
Other things can also be entered in this file:
Like domain and search(to search multiple domains using short hostnames).
To enter multiple dns servers. Just add another line.
It will however always use the 1st entry. Only when this one isn't available it will use a second. It wil not use the second one if the first one cannot resolve it.

HTH.,

Remco

Posted by smohrman on Nov. 18 2005,18:47
Hi,

Thanks!  I soon realized that since I could browse the web and ping web addresses that DSL must have recieved DNS parameters during boot.  It still puzzles me why it can't resolve LAN hostnames but it must have my DNS server loaded....the workaround using the IP is just fine.

Thanks again.

Posted by NotTheMama on Nov. 19 2005,11:06
If your machines have fixed ips, you can enter them in /etc/hosts. Them they can be resolved.
If you are behind a router. You could try to set its ip in /etc/resolv.conf. It might be able to resolve local machines and forward other requests to its known dns servers...

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.