LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   [Help] Problem Server DNS and Hostnames (https://www.linuxquestions.org/questions/linux-server-73/%5Bhelp%5D-problem-server-dns-and-hostnames-4175440141/)

romanrsr 12-05-2012 09:19 AM

[Help] Problem Server DNS and Hostnames
 
Hello friends, sorry for my poor English. I come from a long-standing problem I can not solve, and I need your help .. I have a server with Bind DNS with Zentyal administer it. The problem I came for a while, is that when configuring a Samba + LDAP client I can login from other servers by IP but not by hostname. For example if the server is called "ServidorITS" and your IP is "192.168.0.33" I can access its IP, but I can access the full name: ServidorITS.midominio.com but not by hostname. Even when I do an nslookup IP to me works ok, but when I do it tells me NXDOMAIN Hostname. Someone can give me a hand? It's really appreciate it!

Greetings!

mmheera 12-05-2012 11:11 AM

You may try http://intodns.com/ to check your dns server for possible issues.

Thanks!

romanrsr 12-05-2012 12:56 PM

Quote:

Originally Posted by mmheera (Post 4843315)
You may try http://intodns.com/ to check your dns server for possible issues.

Thanks!

The problem is not the domain as works out well .. What is not good is the hostname resolves. Greetings!

mmheera 12-05-2012 02:17 PM

Quote:

Originally Posted by romanrsr (Post 4843245)
...I can login from other servers by IP but not by hostname. For example if the server is called "ServidorITS" and your IP is "192.168.0.33" I can access its IP, but I can access the full name: ServidorITS.midominio.com but not by hostname. Even when I do an nslookup IP to me works ok, but when I do it tells me NXDOMAIN Hostname. Someone can give me a hand? It's really appreciate it!

Does that mean you CAN access by full name? Do you mean, you CAN NOT access using "ServidorITS", but you CAN using "ServidorITS.midominio.com"?

The error NXDOMAIN refers to non-existent Internet or Intranet domain name, if the DNS is unable to resolve the domain name this error is returned.

Are you sure your DNS is properly configured? You need A record for the hosts.

romanrsr 12-06-2012 11:46 AM

Quote:

Originally Posted by mmheera (Post 4843410)
Does that mean you CAN access by full name? Do you mean, you CAN NOT access using "ServidorITS", but you CAN using "ServidorITS.midominio.com"?

The error NXDOMAIN refers to non-existent Internet or Intranet domain name, if the DNS is unable to resolve the domain name this error is returned.

Are you sure your DNS is properly configured? You need A record for the hosts.

Exactly, I can connect to ServidorITS.midominio.com same as it would connect to the IP, but I can not connect to the Hostname ServidorITS it. A I have configured the DNS to another server as it does work. A detail .. In Windows Explorer, for example, in domain networks, the server does not appear, but if I open it from Start / Run / \ \ servidorits.lempert.com.ar opening it.

mmheera 12-06-2012 03:30 PM

Make sure that nmbd (NetBIOS name server daemon) is running. You can check whether the nmbd is running by the following command:

$ ps -ef | grep nmbd

Try enabling WINS support and make sure you have netbios support enabled on the windows machines.

mmheera 12-06-2012 03:37 PM

Also, please try to look at the samba logs for possible issues. It should be in /var/log/ directory. If not sure, then check your samba.conf file.

Thanks!

romanrsr 12-07-2012 08:46 AM

Quote:

Originally Posted by mmheera (Post 4844079)
Also, please try to look at the samba logs for possible issues. It should be in /var/log/ directory. If not sure, then check your samba.conf file.

Thanks!

The nmbd process is not running, but in the smb.conf file I have configured the NetBIOS name, which may be happening? Thank you!

Greetings!

mmheera 12-07-2012 10:15 AM

You should try to start nmbd service and make it running. It depends on your Linux distribution, how you start/stop your services. You may try:

service nmbd start

romanrsr 12-07-2012 11:51 AM

Quote:

Originally Posted by mmheera (Post 4844622)
You should try to start nmbd service and make it running. It depends on your Linux distribution, how you start/stop your services. You may try:

service nmbd start

Is that when I started, I said unknown service, but what I have called Samba ..

mmheera 12-07-2012 12:15 PM

Which Linux distribution are you using? Try the following then:

service smbd restart

and check afterwards if nmbd is running.


All times are GMT -5. The time now is 04:25 AM.