LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-14-2004, 07:35 PM   #1
jmdlcar
Member
 
Registered: Nov 2003
Distribution: Porteus 3.2 Mate (Slackware)
Posts: 141

Rep: Reputation: 15
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.
 
Old 05-14-2004, 09:17 PM   #2
TheOther1
Member
 
Registered: Feb 2003
Location: Atlanta, GA
Distribution: RHAS 2.1, RHEL3, RHEL4, SLES 8.3, SLES 9, SLES9_64, SuSE 9.3 Pro, Ubuntu, Gentoo
Posts: 335

Rep: Reputation: 32
nameserver x.y.z.a
nameserver x.y.z.b
nameserver x.y.z.c
search mydomain.com
domain mydomain.com
 
Old 05-14-2004, 09:47 PM   #3
irfanhab
Member
 
Registered: Jan 2004
Location: Pakistan
Distribution: OpenSuse 10.2, Slackware 11, Solaris 10
Posts: 415

Rep: Reputation: 34
Are you sure it's
nameserver
and not
name server

in resolv.conf
 
Old 05-14-2004, 09:54 PM   #4
TheOther1
Member
 
Registered: Feb 2003
Location: Atlanta, GA
Distribution: RHAS 2.1, RHEL3, RHEL4, SLES 8.3, SLES 9, SLES9_64, SuSE 9.3 Pro, Ubuntu, Gentoo
Posts: 335

Rep: Reputation: 32
checked several of my production Linux boxes and all are nameserver.
 
Old 05-14-2004, 10:17 PM   #5
irfanhab
Member
 
Registered: Jan 2004
Location: Pakistan
Distribution: OpenSuse 10.2, Slackware 11, Solaris 10
Posts: 415

Rep: Reputation: 34
I thought 'name server' because:
The Net Howto from TLDP mentions name server in section 5.5.3, in resolv.conf
 
Old 05-14-2004, 10:39 PM   #6
mrgrieves
Member
 
Registered: Apr 2004
Location: north of 52, south of 54
Distribution: slackware 10.0
Posts: 108

Rep: Reputation: 15
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.)
 
Old 05-15-2004, 02:40 AM   #7
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
I can confirm that I have no 'domain' entry my resolv.conf and everything is working great.
 
Old 05-15-2004, 03:40 AM   #8
nixel
Member
 
Registered: Apr 2004
Location: USA
Distribution: Slackware 9.1
Posts: 71

Rep: Reputation: 15
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
 
Old 05-15-2004, 09:10 AM   #9
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
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
 
Old 05-15-2004, 11:44 AM   #10
Nichole_knc
Member
 
Registered: Mar 2004
Location: Georgia
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: Reputation: 30
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
resolv.conf albundy Linux - Software 5 12-14-2004 03:12 PM
resolv.conf?? wrat Linux - Newbie 3 06-14-2004 04:37 PM
resolv.conf ricemark20 Linux - Networking 12 11-11-2003 04:08 PM
resolv.conf dnsbum Linux - Networking 1 10-21-2003 12:00 PM
resolv.conf Culbert Linux - Networking 8 03-20-2003 04:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration