Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problem with resolv.conf[solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
blacklisted
n00b
n00b


Joined: 23 May 2006
Posts: 65

PostPosted: Sat Jun 10, 2006 5:07 pm    Post subject: problem with resolv.conf[solved] Reply with quote

i am a university student , we have our lan system here and to access net we have to pass through a squid proxy server that requires quthentication .But thats not the point here . I am having problems accessing the other pcs on lan by their computer names . For example at our computer center we have a matlab server matlab.cc.iitk.ac.in , the hostel pcs are named by xxxxx.junta.iitk.ac.in , xxxx being the name of the pc .
My /etc/resolv.conf looks like this:
nameserver 172.31.1.1
nameserver 172.31.1.2
search cc.iitk.ac.in junta.iitk.ac.in iitk.ac.in
domain junta.iitk.ac.in

these are some of the outputs:
ping matlab
ping: unknown host matlab

ping matlab.cc.iitk.ac.in
PING matlab.cc.iitk.ac.in (172.31.1.112) 56(84) bytes of data.
64 bytes from matlab.cc.iitk.ac.in (172.31.1.112): icmp_seq=1 ttl=254 time=18.4 ms
64 bytes from matlab.cc.iitk.ac.in (172.31.1.112): icmp_seq=2 ttl=254 time=23.4 ms

why doesnt ping matlab work when i have the right settings in resolv.conf
Also i can ping hostel comps just by name i.e without adding junta.iitk.ac.in
But when i change domain from junta.iitk.ac.in to cc.iitk.ac.in then i can ping matlab server by ping matlab , but then i cant ping hostel pcs wihout adding junta.iitk.ac.in .

The same thing happens when i use telnet or ssh to access these pcs .
So basically that means that search is not working only domain is working .


Last edited by blacklisted on Sat Jun 10, 2006 5:55 pm; edited 1 time in total
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Sat Jun 10, 2006 5:38 pm    Post subject: Re: problem with resolv.conf Reply with quote

blacklisted wrote:
i am a university student , we have our lan system here and to access net we have to pass through a squid proxy server that requires quthentication .But thats not the point here . I am having problems accessing the other pcs on lan by their computer names . For example at our computer center we have a matlab server matlab.cc.iitk.ac.in , the hostel pcs are named by xxxxx.junta.iitk.ac.in , xxxx being the name of the pc .
My /etc/resolv.conf looks like this:
nameserver 172.31.1.1
nameserver 172.31.1.2
search cc.iitk.ac.in junta.iitk.ac.in iitk.ac.in
domain junta.iitk.ac.in

these are some of the outputs:
ping matlab
ping: unknown host matlab


The error here is that domain and search are mutually exclusive and you have domain last so the search is not considered. Just remove the domian line
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
blacklisted
n00b
n00b


Joined: 23 May 2006
Posts: 65

PostPosted: Sat Jun 10, 2006 5:55 pm    Post subject: Reply with quote

vow that worked!! thanks a lot buddy , plz take some time to look at my new thread , its also related to resolving names.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum