You are not logged in.

#1 2012-08-08 18:10:06

_will
Member
Registered: 2004-07-08
Posts: 123

intranet name resolution (ddns?) in corporate network

It's recently become useful for others on the heterogeneous lab network to connect to me without having to know the most recent IP address.
This is seamless for the windows machines on the network. It's  ${WinHostname}.acct.upmchs.net
But I dont know how to approach doing the same in arch.

> ipconfig /all

Windows IP Configuration

        Host Name . . . . . . . . . . . . : oac-1loeff0034
        Primary Dns Suffix  . . . . . . . : acct.upmchs.net
        Node Type . . . . . . . . . . . . : Peer-Peer
        IP Routing Enabled. . . . . . . . : No
        WINS Proxy Enabled. . . . . . . . : No
        DNS Suffix Search List. . . . . . : acct.upmchs.net
                                            isd.upmc.edu
                                            isdip.upmc.edu
                                            odoe.upmc.edu
                                            chp.edu
                                            dhcp.chp.edu
Ethernet adapter Local Area Connection:
        Connection-specific DNS Suffix  . : acct.upmchs.net
        Description . . . . . . . . . . . : Intel(R) 82566DM-2 Gigabit Network Connection
        Physical Address. . . . . . . . . : 00-1E-37-2C-14-8A
        Dhcp Enabled. . . . . . . . . . . : Yes
        Autoconfiguration Enabled . . . . : Yes
        IP Address. . . . . . . . . . . . : 10.145.65.138
        Subnet Mask . . . . . . . . . . . : 255.255.254.0
        Default Gateway . . . . . . . . . : 10.145.64.1
        DHCP Server . . . . . . . . . . . : 128.147.16.10
        DNS Servers . . . . . . . . . . . : 128.147.23.90
        Primary WINS Server . . . . . . . : 128.147.17.37
        Secondary WINS Server . . . . . . : 157.229.40.13
        Lease Obtained. . . . . . . . . . : Wednesday, August 08, 2012 12:14:57 AM
        Lease Expires . . . . . . . . . . : Thursday, August 09, 2012 12:14:57 AM

Despite the WINS server settings above, I could ping hosts by name before having added host: ...wins to /etc/nsswitch.conf and nmblookup fails (though that could easily a configuration issue)

» ping oac-1loeff0034.acct.upmchs.net -c1 >/dev/null && echo found
found

» nmblookup oac-1loeff0034.acct.upmchs.net 
querying oac-01MRXP.acct.upmchs.net on 10.145.65.255
name_query failed to find name ooac-1loeff0034.acct.upmchs.net

In addition to playing with setting hostname and host_name in /etc/dhcpcd.conf
I've tried dhclient

/etc/dhclient.conf wrote:
send host-name = reese.acct.upmchs.net
send dhcp-lease-time 3600;
#supersede domain-search "acct.upmchs.net"
prepend domain-name-servers 128.147.23.90;
option netbios-name-server 128.147.17.37
ddns-update-style interim

but I'm just stabbing in the dark.

How does one talk to a WINS server or dns as windows would?




» hostname
reese
» ifconfig eth0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500  metric 1
        inet 10.145.65.168  netmask 255.255.254.0  broadcast 10.145.65.255
        inet6 fe80::222:64ff:fea4:aa39  prefixlen 64  scopeid 0x20<link>
        ether 00:22:64:a4:aa:39  txqueuelen 1000  (Ethernet)
        RX packets 35006584  bytes 2589678375 (2.4 GiB)
        RX errors 0  dropped 870  overruns 0  frame 0
        TX packets 119096174  bytes 165546093050 (154.1 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 19  memory 0xf0180000-f01a0000  
sed 's/\(#\|;\).*//;/^ *$/d'  /etc/samba/smb.conf wrote:
[global]
   netbios name = reese
   workgroup = 1UPMC-ACCT     # actually domain name
   server string = %h archlinux rm114
   security = user
   load printers = yes
   log file = /var/log/samba/%m.log
   max log size = 50
   dns proxy = no 
[homes]
   comment = Home Directories
   browseable = no
   writable = yes
[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = no
   guest ok = no
   writable = no
   printable = yes

Thanks!

Offline

#2 2012-08-08 19:18:41

t0m5k1
Member
From: overthere
Registered: 2012-02-10
Posts: 326

Re: intranet name resolution (ddns?) in corporate network

contact the admin & have her/him add your ip to a static list then have him/her add you to the zone file for your domain (.acct.upmchs.net)

i say this because:

DHCP Server . . . . . . . . . . . : 128.147.16.10 <<<<this provides all ip's on your network
DNS Servers . . . . . . . . . . . : 128.147.23.90 <<<<this provides DNS for the network

as soon as those begin to advertise YOU others will be able to connect using the name reese.acct.upmchs.net

anything you do on your pc is local to you & will not be advertised to the network. Unless you manage to overide it also using ddns will fail unless the dns server above is configured to allow you to modify the dns name of your ip.

Last edited by t0m5k1 (2012-08-08 19:36:54)


Aurora R10 (0TYR0X) - Ryzen 7 5800X - 16GB - RX6700XT 12GB - Hyprland (occasionally XFCE) - AOC Q27G3XMN 1440P
EFI Stub Boot
PROUD XLIBRE USER
Linux User: 401820  Steam-Reddit

Offline

#3 2012-08-08 20:49:39

_will
Member
Registered: 2004-07-08
Posts: 123

Re: intranet name resolution (ddns?) in corporate network

Thanks for the quick reply. I'm hoping there is a solution that doesn't involve the system admins. (We have one static IP. Obtaining it took weeks)

I'm encouraged to tinker because I think I can change a windows hostname, renew, and see that change applied to the network without human intervention.  I'm under the impression that if I can figure out how to get dhclient, or dhcpcd, etc to ask politely, any *.acct.upmchs.net that doesn't conflict with an existing name could be mine.

That's what options like ddns-update-style or even hostname are for?

Last edited by _will (2012-08-08 20:54:54)

Offline

#4 2012-08-09 03:37:39

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,692

Re: intranet name resolution (ddns?) in corporate network

Unless I am missing something, don't you want Avahi ?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#5 2012-08-09 14:43:25

_will
Member
Registered: 2004-07-08
Posts: 123

Re: intranet name resolution (ddns?) in corporate network

I think I do. Thanks!

but the errors I'm getting with my config reflect a lack of support for unicast DNS (?). Only domain-name=.local (not acct.upmchs.net) will work?

http://lists.freedesktop.org/archives/a … 00517.html

Oliver Charles, lists.freedesktop.org/archives/avahi/2006-February/000517.html  wrote:

>         domain-name=home
   This is the problem!  ^^^^
Only .local is resolved using multicast DNS. All other domains are
resolved via traditional unicast DNS. However, since .home doesn't
exist as real internet domain all your lookups fail. And since Avahi
doesn't support unicast DNS updates right now, avahi is unable to
register any local services or records.
.....
>         iface.c: avahi_server_add_service() failed: Not supported
>         iface.c: avahi_server_add_service() failed: Not supported

These two messages are a result of avahi not supporting unicast DNS
updates right now.

sed 's/#.*//;/^ *$/d' /etc/avahi/avahi-daemon.conf wrote:
[server]
host-name=reese
domain-name=acct.upmchs.net
browse-domains=0pointer.de, zeroconf.org
use-ipv4=yes
use-ipv6=no
ratelimit-interval-usec=1000000
ratelimit-burst=1000
[wide-area]
enable-wide-area=yes
[publish]
publish-addresses=yes
publish-hinfo=yes
publish-domain=yes
publish-dns-servers=128.147.23.90
publish-resolv-conf-dns-servers=yes 
[reflector]
[rlimits]
rlimit-core=0
rlimit-data=4194304
rlimit-fsize=0
rlimit-nofile=768
rlimit-stack=4194304
rlimit-nproc=3
/var/log/daemon.log wrote:

Aug  9 10:28:38 reese-loeff114 avahi-daemon[18558]: Found user 'avahi' (UID 84) and group 'avahi' (GID 84).
Aug  9 10:28:38 reese-loeff114 avahi-daemon[18558]: Successfully dropped root privileges.
Aug  9 10:28:38 reese-loeff114 avahi-daemon[18558]: avahi-daemon 0.6.31 starting up.
Aug  9 10:28:38 reese-loeff114 avahi-daemon[18558]: Successfully called chroot().
Aug  9 10:28:38 reese-loeff114 avahi-daemon[18558]: Successfully dropped remaining capabilities.
Aug  9 10:28:38 reese-loeff114 avahi-daemon[18558]: Loading service file /services/sftp-ssh.service.
Aug  9 10:28:38 reese-loeff114 avahi-daemon[18558]: Loading service file /services/ssh.service.
Aug  9 10:28:38 reese-loeff114 avahi-daemon[18558]: Loading service file /services/udisks.service.
Aug  9 10:28:38 reese-loeff114 avahi-daemon[18558]: Joining mDNS multicast group on interface eth0.IPv4 with address 10.145.65.168.
Aug  9 10:28:38 reese-loeff114 avahi-daemon[18558]: New relevant interface eth0.IPv4 for mDNS.
Aug  9 10:28:38 reese-loeff114 avahi-daemon[18558]: Network interface enumeration completed.
Aug  9 10:28:38 reese-loeff114 avahi-daemon[18558]: Registering new address record for fe80::222:64ff:fea4:aa39 on eth0.*.
Aug  9 10:28:38 reese-loeff114 avahi-daemon[18558]: Registering new address record for 10.145.65.168 on eth0.IPv4.
Aug  9 10:28:38 reese-loeff114 avahi-daemon[18558]: Registering HINFO record with values 'X86_64'/'LINUX'.
Aug  9 10:28:38 reese-loeff114 avahi-dnsconfd[18629]: Successfully connected to Avahi daemon.
Aug  9 10:28:39 reese-loeff114 avahi-daemon[18558]: iface.c: avahi_server_add_service() failed: Not supported
Aug  9 10:28:39 reese-loeff114 avahi-daemon[18558]: iface.c: avahi_server_add_service() failed: Not supported
Aug  9 10:28:39 reese-loeff114 avahi-daemon[18558]: Server startup complete. Host name is reese.acct.upmchs.net. Local service cookie is 2499472360.
Aug  9 10:28:39 reese-loeff114 avahi-daemon[18558]: Failed to add service 'reese' of type '_udisks-ssh._tcp', ignoring service group (/services/udisks.service): Not supported
Aug  9 10:28:39 reese-loeff114 avahi-daemon[18558]: Failed to add service 'reese' of type '_ssh._tcp', ignoring service group (/services/ssh.service): Not supported
Aug  9 10:28:39 reese-loeff114 avahi-daemon[18558]: Failed to add service 'reese' of type '_sftp-ssh._tcp', ignoring service group (/services/sftp-ssh.service): Not supported
Aug  9 10:28:39 reese-loeff114 avahi-daemon[18558]: Failed to add DNS server address: Not supported
Aug  9 10:28:39 reese-loeff114 avahi-daemon[18558]: Failed to add DNS server address: Not supported

Last edited by _will (2012-08-09 14:48:25)

Offline

Board footer

Powered by FluxBB