LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 12-22-2003, 03:35 PM   #1
darthczyz
Member
 
Registered: May 2003
Distribution: Redhat 9
Posts: 49

Rep: Reputation: 15
adding a DNS client


i just set up a DNS server (i hope), and i'd like to see if it's working by setting up a client to use it. i can't figure out how to get it in the same domain as the DNS machine. i added the address of the machine into resolv.conf like so

nameserver: xxx.xxx.xxx.xxx

but i'm not sure what to put in the search part, or what i need to make my hostname now, or anything. any help would be appreciated.

skiz
 
Old 12-22-2003, 03:50 PM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
resolv.conf doesn't really need a "search" directive, unless the box is in a different domain. Just setup as such

domain yourdomain.tld
nameserver 10.0.0.5
nameserver 10.0.0.7

etc... obviously replace the nameservers with whatever you're using.

You don't need a "client" for DNS, most network applications have dns resolution system calls built-in.

You can test the setup using any one of several DNS diagnostic tools: dig, host, and nslookup. Note that nslookup is deprecated, so I suggest learning to use dig and host. dig wil give you a lot more information, while host has neat and tidy output.

As long as you have your resolv.conf file configured to use your own nameserver, then doing
$ dig www.google.com
should use your own server.

You'll know what server was used by the last few lines of the dig output:
Code:
;; Query time: 325 msec
;; SERVER: 10.0.0.5#53(10.0.0.5)
;; WHEN: Mon Dec 22 13:49:29 2003
;; MSG SIZE  rcvd: 257
 
Old 12-23-2003, 07:47 AM   #3
darthczyz
Member
 
Registered: May 2003
Distribution: Redhat 9
Posts: 49

Original Poster
Rep: Reputation: 15
thanks chort,

i'll keep hacking away at it. i'll switch from search to domain and see if that resolves anything. i think i have a number of other problems ... but i'll see if i can fix them :> thanks man
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding Gtk-2 themes (for Nicotine --soulseek client) flamesrock Linux - Software 3 10-07-2006 01:27 PM
dns adding extra webserver bristi Linux - Networking 0 09-08-2005 05:23 AM
dns client cannot resolve on dns server jtvillegas Linux - Software 1 10-20-2003 04:18 AM
Adding Samba client to NT domain PhilHalf Linux - Networking 1 02-20-2003 07:16 AM
Client to use Dynamic DNS afuchigami Linux - Networking 11 01-13-2003 08:49 AM


All times are GMT -5. The time now is 12:50 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration