Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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...
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857
Rep:
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.
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857
Rep:
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.