Author |
Message |
elbow=GCHQ=
|
Post subject: Logresolve/resolveip Posted: Sun Jun 08, 2008 9:26 am |
|
|
Comin' outta Gallifrey |
|
Joined: Mon Aug 01, 2005 9:44 pm Posts: 7821 Location: banging with enamor
|
Hok....logresolve takes standard input, if you put an IP in it'll give you the host name out. resolveip takes the ip as standard input.
On OS X logresolve will return the hostname in the form of <crsid>.cai.private.cam.ac.uk, where crsid is the id of the person's computer. On ubuntu it returns the computers name (ie bluebottle.local), as does resolveip (can't get resolveip on os x).
How can I get ubuntu to display the hostname rather than the comptuer name?
_________________ “There are some people in this world who don’t love their fellow man, and I HATE people like that!”
|
|
|
|
|
happyslappy
|
Post subject: Re: Logresolve/resolveip Posted: Sun Jun 08, 2008 2:13 pm |
|
|
that was a stupid comment btw |
|
Joined: Wed Mar 03, 2004 12:40 pm Posts: 109344 Location: manchester
|
host ip ?
_________________
|
|
|
|
|
elbow=GCHQ=
|
Post subject: Re: Logresolve/resolveip Posted: Sun Jun 08, 2008 3:28 pm |
|
|
Comin' outta Gallifrey |
|
Joined: Mon Aug 01, 2005 9:44 pm Posts: 7821 Location: banging with enamor
|
On OS X Code: sxty2-a:~ sharonyang$ host 172.21.226.187 187.226.21.172.in-addr.arpa domain name pointer jd437-a.cai.private.cam.ac.uk. On Linux Code: bill@Moriarty:~$ host 172.21.226.187 Host 187.226.21.172.in-addr.arpa. not found: 3(NXDOMAIN)
_________________ “There are some people in this world who don’t love their fellow man, and I HATE people like that!”
|
|
|
|
|
happyslappy
|
Post subject: Re: Logresolve/resolveip Posted: Sun Jun 08, 2008 11:46 pm |
|
|
that was a stupid comment btw |
|
Joined: Wed Mar 03, 2004 12:40 pm Posts: 109344 Location: manchester
|
check /etc/resolve.conf and make sure its the same as what ever dns you have on the mac if your stuck add in somert like opendns 208.67.222.222
are you allocated ip via dhcp at all ?
_________________
|
|
|
|
|
happyslappy
|
Post subject: Re: Logresolve/resolveip Posted: Mon Jun 09, 2008 12:26 am |
|
|
that was a stupid comment btw |
|
Joined: Wed Mar 03, 2004 12:40 pm Posts: 109344 Location: manchester
|
ops had a few - but just noticed - private and 172.21. there is your anser its like a 192 or 10 address just not as common the mac has local dns via dhcp i guess and linux you added in manually ?
_________________
|
|
|
|
|
elbow=GCHQ=
|
Post subject: Re: Logresolve/resolveip Posted: Tue Jun 10, 2008 7:47 am |
|
|
Comin' outta Gallifrey |
|
Joined: Mon Aug 01, 2005 9:44 pm Posts: 7821 Location: banging with enamor
|
ahh..one thing I'd forgotten is that the linux box has got open DNS on but my macbook hasn't....
_________________ “There are some people in this world who don’t love their fellow man, and I HATE people like that!”
|
|
|
|
|
|