LinuxQuestions.org
Help answer threads with 0 replies.
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
  Search this Thread
Old 01-31-2004, 02:22 PM   #1
diwakergupta
LQ Newbie
 
Registered: Nov 2003
Location: San Diego, CA
Distribution: Debian
Posts: 4

Rep: Reputation: 0
hostname issues


Hello,

Here's the problem. I have a wireless router at home, which acts as the primary name server as well. I'm using DHCP. Here is a sequence of troublesome commands:

$ hostname
diwaker

$ hostname -i
hostname: Unknown host

$ host diwaker
Host diwaker not found: 3(NXDOMAIN)

$ host 172.16.1.33
33.1.16.172.in-addr.arpa domain name pointer diwaker.gateway.2wire.net.

$ cat /etc/resolve.conf
; generated by /sbin/dhclient-script
search gateway.2wire.net
nameserver 172.16.0.1

As I understand, the DNS has an entry, but host is still giving an error. Any ideas?

Diwaker
 
Old 01-31-2004, 06:15 PM   #2
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
eeeh diwaker is your machine hostname, right?
Remember that your router only do request to your ISP dns server, it doesn't contain any zone or configuration that may lead him to you. And since diwaker.gateway.2wire.net probably doesn't exist in your ISP database, it can't find you.
 
Old 01-31-2004, 09:02 PM   #3
diwakergupta
LQ Newbie
 
Registered: Nov 2003
Location: San Diego, CA
Distribution: Debian
Posts: 4

Original Poster
Rep: Reputation: 0
Well thats not entirely true. I think the router maintains a local DNS as well. I have another machine called florence with exactly the same configuration, and all the commands I wrote earlier work fine for it.
 
Old 02-01-2004, 12:44 AM   #4
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
eeeh ok, weird tool... maybe the router may be configurated to hold your hostname or find your hostname in NetBios (you knowm, Windoze share of Linux Samba) packets. Take a look at the user manual of your router, there should be explaination somwhere in it.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Issues setting hostname with DHCP blaroe Ubuntu 2 05-30-2005 04:46 AM
Hostname Issues : Linux Gateway Cagao Linux - Networking 8 10-29-2004 11:53 PM
Hostname change issues sfwalter Linux - Networking 1 10-29-2004 03:50 PM
Mail - Hostname issues ?? init Linux - Networking 1 08-23-2004 05:05 AM
Hostname issues drxsmurf Mandriva 1 01-24-2004 01:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:17 AM.

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