LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   resolv.conf (https://www.linuxquestions.org/questions/slackware-14/resolv-conf-181569/)

jmdlcar 05-14-2004 07:35 PM

resolv.conf
 
I just slackware current and have DSL in revsolv.conf I put "server name 192.168.1.1" is there anything else I need to do? Cause I can't get on the internet.

TheOther1 05-14-2004 09:17 PM

nameserver x.y.z.a
nameserver x.y.z.b
nameserver x.y.z.c
search mydomain.com
domain mydomain.com

irfanhab 05-14-2004 09:47 PM

Are you sure it's
nameserver
and not
name server

in resolv.conf

TheOther1 05-14-2004 09:54 PM

checked several of my production Linux boxes and all are nameserver.

irfanhab 05-14-2004 10:17 PM

I thought 'name server' because:
The Net Howto from TLDP mentions name server in section 5.5.3, in resolv.conf

mrgrieves 05-14-2004 10:39 PM

its 'nameserver' for sure.

I'm also pretty sure you don't need to add a 'domain' entry. Can anyone confirm this?

In xterm, type 'netconfig' and enter the settings. It sounds like you'll need to select 'static IP' (192.168.1.25 is a good one.)

shilo 05-15-2004 02:40 AM

I can confirm that I have no 'domain' entry my resolv.conf and everything is working great.

nixel 05-15-2004 03:40 AM

i havent touched the resolv.conf ever. and i tried reading the man pages but i just dont quite understand. am i supposed to put my isp's nameservers here? why? how do i find them? call them?

nameserver 205.152.144.23
nameserver 205.152.132.23
search

shilo 05-15-2004 09:10 AM

I have the IP address for my router in mine. I never had to put anything in there, though. I just opened it up and saw what was in it. Here's the entire contents of mine, if it helps.
Code:

search mydomain.com
nameserver 192.168.0.1


Nichole_knc 05-15-2004 11:44 AM

If you are using dhcp you do not have to do anything to the resolv.conf file.
When you are running dhcpd and you are getting your ip from a dhcp server the resolv.conf is written over at reboot, lease expiration, a inetd restart, or if netconfig is ran.

If you are on a static ip and I will assume you have all ready configured /etc/rc.d/rc.inetd.conf with the static ip, netmask, dhcp name and the default gateway then you must configure the resolv.conf with your local dns server (if you are running a correctly configured bind) and/or your ISP nameservers. You may also put in other nameservers here also.

Note on bind nameserver and slack.. A low end cacheing nameserver is installed by default in slackware BUT you should edit this as required for maximum benefit. Please use the HOWTOs and the bind manual for a improperly configured bind nameserver can cause undue traffic on the internet and your local net.

<resolv.conf>
search YOUR_LOCAL.NETWORK
search ANOTHER.NETWORK
nameserver 127.0.0.1 #LOCALHOST IF RUNNING A NAMESERVER
nameserver ###.###.###.### #local network nameserver ip
# From here you can add other nameservers like your ISPs
nameserver
nameserver
nameserver

Now this is not all....
resolv.conf also depends on you having your hosts file configured it will search it first. You can add to the /etc/hosts file local machines, frequently visited networks, websites or other network places to speed getting to them. This is very handy as it allows faster access as it name to ip is done locally. The hosts file is also where you may id aliases for you machine also.
Note also that you can do this on windors also. The hosts and lmhost are located in the c:/windows/system32/drivers/etc directory. They are configured much like the unix version.


All times are GMT -5. The time now is 11:15 PM.