SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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?
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.
Distribution: SlackWare 10.1+, FreeBSD 4.4-5.2, Amiga 1.3,2.1,3.1, Windors XP Pro (makes a fair answering machine)
Posts: 287
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.