Lorenzo Milesi
2019-Dec-02 09:48 UTC
[Samba] Problem in viewing server hostname when browsing network
I've setup a Ubuntu16.04 server with Samba 4.3.11+dfsg-0ubuntu0.16.04.23. Everything works fine except for a little problem with reverse "name resolution": when browsing computer in the networks the server is displayed as IP address instead of the configured hostname. All the PCs are displayed with name, only the server has the IP. [1] Accessing the server via \\hostname works perfectly. It looks like a DNS problem, but I didn't manage to find out the problem. Any hint on where to look at would be helpful, thanks. Samba config: [global] server services = s3fs, rpc, nbt, wrepl, ldap, cldap, kdc, drepl, winbindd, ntp_signd, kcc, dnsupdate realm = domain.lan ldap server require strong auth = no netbios name = SERVER7 workgroup = DOMAIN server role = active directory domain controller log level = 5 idmap_ldb:use rfc2307 = yes log file = /var/log/samba/log.%m ea support = yes [users] path = /home/users/ read only = no [profiles] comment = Users profiles path = /home/profiles read only = no browsable = no BIND is configured manually. This is the BIND config for the 10.0.0 zone: $TTL 86400 @ IN SOA samba.domain.lan samba.domain.lan ( 1997022705 28800 14400 3600000 86400 ) NS samba.server7. NS samba.domain.lan. NS server01.domain.com. NS mailing.domain.com. ; IN NS 10.0.0.7 2 PTR server02.domain.com. 14 PTR mailing.domain.com. 7.0.0.10.in-addr.arpa. IN PTR server7. It happens from all computers. C:\Users\administrator.DOMAIN>nslookup server7.domain.lan Server: samba.domain.lan Address: 10.0.0.7 Nome: server7.domain.lan Addresses: 10.0.0.7 192.168.0.7 C:\Users\administrator.DOMAIN>nslookup 10.0.0.7 Server: server7 Address: 10.0.0.7 Nome: server7 Address: 10.0.0.7 C:\Users\administrator.DOMAIN>ipconfig /all Configurazione IP di Windows Nome host . . . . . . . . . . . . . . : VM01W7 Suffisso DNS primario . . . . . . . . : domain.lan Tipo nodo . . . . . . . . . . . . . . : Ibrido Routing IP abilitato. . . . . . . . . : No Proxy WINS abilitato . . . . . . . . : No Elenco di ricerca suffissi DNS. . . . : domain.lan Scheda Ethernet Connessione alla rete locale (LAN): Suffisso DNS specifico per connessione: Descrizione . . . . . . . . . . . . . : Connessione di rete Intel(R) PRO/1000 MT Indirizzo fisico. . . . . . . . . . . : 00-C1-44-71-14-CD DHCP abilitato. . . . . . . . . . . . : No Configurazione automatica abilitata : S? Indirizzo IPv4. . . . . . . . . . . . : 10.0.0.112(Preferenziale) Subnet mask . . . . . . . . . . . . . : 255.255.255.0 Gateway predefinito . . . . . . . . . : 10.0.0.250 Server DNS . . . . . . . . . . . . . : 10.0.0.7 Server WINS primario . . . . . . . . : 10.0.0.7 NetBIOS su TCP/IP . . . . . . . . . . : Attivato [1]?https://i.stack.imgur.com/lS9sC.png -- Lorenzo Milesi - lorenzo.milesi at yetopen.it YetOpen S.r.l. - https://www.yetopen.it/ Via Salerno 18 - 23900 Lecco - ITALY - Tel +39 0341 220 205 - Fax +39 178 6070 222 Think green - Non stampare questa e-mail se non necessario / Don't print this email unless necessary -------- D.Lgs. 196/2003 e GDPR 679/2016 -------- Tutte le informazioni contenute in questo messaggio sono riservate ed a uso esclusivo del destinatario. Tutte le informazioni ivi contenute, compresi eventuali allegati, sono da ritenere confidenziali e riservate secondo i termini del vigente D.Lgs. 196/2003 in materia di privacy e del Regolamento europeo 679/2016 - GDPR - e quindi ne e' proibita l'utilizzazione ulteriore non autorizzata. Nel caso in cui questo messaggio Le fosse pervenuto per errore, La invitiamo ad eliminarlo senza copiarlo, stamparlo, a non inoltrarlo a terzi e ad avvertirci non appena possibile. Grazie. Confidentiality notice: this email message including any attachment is for the sole use of the intended recipient and may contain confidential and privileged information; pursuant to Legislative Decree 196/2003 and the European General Data Protection Regulation 679/2016 - GDPR - any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recepient please delete this message without copying, printing or forwarding it to others, and alert us as soon as possible. Thank you.
Rowland penny
2019-Dec-02 10:38 UTC
[Samba] Problem in viewing server hostname when browsing network
On 02/12/2019 09:48, Lorenzo Milesi via samba wrote:> I've setup a Ubuntu16.04 server with Samba 4.3.11+dfsg-0ubuntu0.16.04.23.Samba 4.3.11 is EOL from Samba's point of view, can I suggest upgrading to 18.04 and using the Samba packages from here: http://apt.van-belle.nl/> Everything works fine except for a little problem with reverse "name resolution": when browsing computer in the networks the server is displayed as IP address instead of the configured hostname. All the PCs are displayed with name, only the server has the IP. [1] > Accessing the server via \\hostname works perfectly. > It looks like a DNS problem, but I didn't manage to find out the problem. Any hint on where to look at would be helpful, thanks. > > Samba config: > [global] > server services = s3fs, rpc, nbt, wrepl, ldap, cldap, kdc, drepl, winbindd, ntp_signd, kcc, dnsupdateSo, you are using bind9 instead of the internal dns server.> realm = domain.lan > ldap server require strong auth = no > netbios name = SERVER7 > workgroup = DOMAIN > server role = active directory domain controller > log level = 5 > idmap_ldb:use rfc2307 = yes > log file = /var/log/samba/log.%m > ea support = yesRemove the line above> [users] > path = /home/users/ > read only = no > [profiles] > comment = Users profiles > path = /home/profiles > read only = no > browsable = noWhat happened to '[netlogon]' & '[sysvol]' ?> > BIND is configured manually. This is the BIND config for the 10.0.0 zone:And there is most likely your problem, you have broken your dns, the zones are stored in AD. Try reading this: https://wiki.samba.org/index.php/Setting_up_a_BIND_DNS_Server> > > It happens from all computers. > > C:\Users\administrator.DOMAIN>nslookup server7.domain.lan > Server: samba.domain.lanWhy isn't 'server7' replying ? Probably because of the incorrectly set up dns. Rowland