LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 09-24-2003, 07:46 PM   #1
ja_nch
LQ Newbie
 
Registered: Sep 2003
Location: Costa Rica
Distribution: RED HAT 9
Posts: 18

Rep: Reputation: 0
Unhappy Linux host name resolution


Hi,

I just installed linux on a very nice Netvista IBM station. I have configured it as a Samba Server.

The problem I am facing is that it does not get its right IP address - name resolution.

I am setting its host name as myWorkStation.domain.corp.com
I am using DHCP for automatic configuring the networking
It automatically detects a DNS server as site.corp.com and also automatically detects some DNS secondary and 3rd addresses.

When I ping the linux box from a windows one, I receive a fully qualified name pointing to an address that does not respond.

When I review the network interface eth0 configuration from webmin, the IP address is somewhat else different from the one I receive at the first ping.

If I ping that new address it works fine, and I can access the server using that address.

It seems that the linux server is not registering itself very well against the DNS or DHCP Services.

Any help on this is very much appreciated.

THKS

JN
 
Old 09-24-2003, 08:13 PM   #2
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
I might aswell ask but does Netvista IBM station. equate to a normal pc or some weird shit ?
 
Old 09-24-2003, 08:53 PM   #3
ja_nch
LQ Newbie
 
Registered: Sep 2003
Location: Costa Rica
Distribution: RED HAT 9
Posts: 18

Original Poster
Rep: Reputation: 0
It is a normal PC as well...
 
Old 09-24-2003, 09:06 PM   #4
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
So did you set up the DNS entries yourself that resolve these computer names or are you using host files?
 
Old 09-24-2003, 09:13 PM   #5
ja_nch
LQ Newbie
 
Registered: Sep 2003
Location: Costa Rica
Distribution: RED HAT 9
Posts: 18

Original Poster
Rep: Reputation: 0
Question

Well, during the installation the system asked me if I wanted to use DHCP so I select yes.

Now when it booted the first time I just went to the network configuration utility and the DNS servers were already there.

I used the etc/hosts file to define the 127.0.0.1 loop back host reference.
 
Old 09-24-2003, 09:21 PM   #6
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
You're DNS sefvers are probably you're ISP ones which will know nothing about your computers

To make life easy

Linux:

/etc/hosts

192.168.1.10 myworkstation.corp.com (or whatever the ip address is)


same for your windows machine theres a host file in there somewhere where you can add appropriate entries.
 
Old 09-24-2003, 10:36 PM   #7
ja_nch
LQ Newbie
 
Registered: Sep 2003
Location: Costa Rica
Distribution: RED HAT 9
Posts: 18

Original Poster
Rep: Reputation: 0
But... the IP address is dynamic, which means that every time I reboot the machine I get a different one...

I think it would be very unconfortable for any of my corporate partners to look for a hosts file to tell their windows machine my new IP address every time...
 
Old 09-24-2003, 11:06 PM   #8
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
Re: Linux host name resolution

Quote:
Originally posted by ja_nch
Hi,

The problem I am facing is that it does not get its right IP address - name resolution.

I am setting its host name as myWorkStation.domain.corp.com
I am using DHCP for automatic configuring the networking
It automatically detects a DNS server as site.corp.com and also automatically detects some DNS secondary and 3rd addresses.
The DNS information is coming from the DHCP server. It does not detect the DNS server on its own.

Quote:

When I ping the linux box from a windows one, I receive a fully qualified name pointing to an address that does not respond.
Elaborate. What are you pinging? "myWorkStation.domain.corp.com" ?

Quote:

When I review the network interface eth0 configuration from webmin, the IP address is somewhat else different from the one I receive at the first ping.

If I ping that new address it works fine, and I can access the server using that address.
I think I am understanding this now. You are pinging the domain name and it basically says "XXX.XXX.XXX.XXX is not responding" and that is an IP that is different from what you actually have assigned to your eth0.


Quote:

It seems that the linux server is not registering itself very well against the DNS or DHCP Services.
Are you sure your ISP allows you to dynamically update the DNS listings for you server? The vast majority of them do not and require you to pay more for a static IP address to have this capability.
Your ISP may not even be using Dynamic DNS and if they are, they may be using a Windows DNS server which will give you all sorts of problems.

It sounds like you have already purchased a fully qualified domain name. If this is for your business, I suggest you pay for a static IP address and have your ISP set up the DNS records. Even if you ever get this to work with a dynamic IP... DNS updates can sometimes take DAYS or even WEEKS. Each time your IP changes, it will not only have to be updated on YOUR name server, but that information will have to be propagated across DNS servers all across the net. Not a good business idea if you ask me.

-KevinJ
 
Old 09-25-2003, 09:10 AM   #9
ja_nch
LQ Newbie
 
Registered: Sep 2003
Location: Costa Rica
Distribution: RED HAT 9
Posts: 18

Original Poster
Rep: Reputation: 0
Kevin,

thanks for the interest.

In fact I am not trying to do so with Internet, but with a corporate intranet.

In fact they use Windows DNS servers.

I am just putting a samba server into such network and trying to access it from some partnes windows computers.

In good theory, I am trying to stablish a Windows shared folder into my intranet but using Linux.

Any Idea is still much appreciated.

JN
 
Old 09-25-2003, 10:55 AM   #10
sickmusic
LQ Newbie
 
Registered: Sep 2003
Posts: 1

Rep: Reputation: 0
ja_nch,

i am having exactly the same problem.

when i do a: "ping machineName"
on a redhat terminal it shows the terminal pinging thru loads of 127.0.01's

wheras when i perform a "ping machineName" on a windows 2000 dos terminal it shows a different machine number altogether!!..
 
Old 09-25-2003, 02:53 PM   #11
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
ja_nch,

I don't think this will work directly. I think the DHCP server is what actually updates the DNS database, and I think Microsoft has that locked down so that only clients speaking NetBIOS will get updated.

There may be a way with Samba, making your box look like a Windows box, but I still bet it will require some intervention on the DHCP and DNS server sides.

By far, the simplest thing to do, is to either get a static IP address assigned and static DNS records, or get a DHCP address reservation.

BUT... I just had an idea... If you are trying to set up a Samba server already, and your clients are simply mapping to file shares on this box, then can't they just map to the NetBIOS name? I know that Samba will update the WINS database, and also that name can be connected to via broadcast resolution.

-K
 
Old 09-25-2003, 03:41 PM   #12
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
Maybe this.... in /etc/sysconfig/network-scripts/ifcfg-eth0 try setting


DHCP_HOSTNAME=myWorkStation.domain.corp.com

and then "service network restart"

-K
 
Old 09-25-2003, 03:49 PM   #13
sidmark-2850
Member
 
Registered: Aug 2003
Posts: 133

Rep: Reputation: 15
You mentioned that you are running a windows DNS server. Are you also running a Windows DHCP server as well? If you are, you should decide on an IP address for your samba server and make a reservation for it on the windows dhcp server. You can also do the same on a linux dhcp server. This will result in a host declaration. This way, the interface will receive the same address and you won't have to worry about FQDN's pointing to non-existant IP addresses. You will need to change the dns entry to match the address that you selected. Like KevinJ said, you can also look into dynamic DNS. I don't have any experience on that end. Yet.
 
  


Reply



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
host name resolution problems vrooom305 Fedora - Installation 1 08-25-2005 01:01 AM
Windows/Linux Host Name Resolution VinnySem Linux - Networking 3 07-26-2005 09:24 PM
Extremely Slow DNS Host Resolution longsword84 Linux - Networking 3 04-01-2005 04:19 PM
Host resolution issues trbdk3 Linux - Networking 1 09-01-2004 08:17 PM
host name resolution Melissa22 Linux - Newbie 4 03-25-2004 04:55 PM

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

All times are GMT -5. The time now is 03:52 PM.

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