View previous topic :: View next topic |
Author |
Message |
blacklisted n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 23 May 2006 Posts: 65
|
Posted: Sat Jun 10, 2006 5:07 pm Post subject: problem with resolv.conf[solved] |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
UberLord Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/16007251014200867ea775c.gif)
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
Posted: Sat Jun 10, 2006 5:38 pm Post subject: Re: problem with resolv.conf |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
blacklisted n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 23 May 2006 Posts: 65
|
Posted: Sat Jun 10, 2006 5:55 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|