I have a Raspberry Pi running Rasbian connected to a Windows Server based network. This is a corporate (education) network that has its own intranet consisting of all connected computing systems and also has a publicly accessible website. For the purpose of this question, the domain will be named
On this intranet, connected Windows computers can append a DNS suffix to their hostname through configuration on the network adapter (steps listed here). This would allow a computer with the name
comp1 to be addressable by
comp1.ns.exampledomain.com from the local network (i.e.
ns.exampledomain.com as the connection-specific suffix).
I have a Raspberry Pi 2 that has the hostname
comppi that I need to be accessible by the address
comppi.ns.exampledomain.com. The Pi is currently accessible by its hostname
comppi, by using
comppi.local or by IP address.
Access via the hostname was achieved by installing samba to the RPi using
sudo apt-get -y install samba. This was the easy way to setup
avahi on the RPi.
I have no access to the DHCP/DNS servers involved. But I should be able to achieve this result without needing to. (As it can be done from a Windows computer just fine without)
I will also note that I have poor understanding of the
/etc/dhcp/dhclient.conf file even after reading the associated
man pages. I'm probably missing something trivial.
- Tried changing the hostname directly to
comppi.ns.exampledomain.comin all places in below files.
- Tried changing the hostname line to
send host-name = "comppi.ns.exampledomain.com"in
- Tried adding the line
append domain-name = "ns.exampledomain.com"to
/etc/dhcp/dhclient.confuser Jordan over on askubuntu.com. However I think this is just adding
ns.exampledomain.comto outgoing hostname resolves when they fail.
- OS: Raspbian GNU/Linux 8 (jessie) (Note: this was the lite version)
- Pi: Raspberry Pi 2
- Hostname: comppi
127.0.0.1 localhost ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters 127.0.1.1 comppi comppi.ns.exampledomain.com
# Configuration file for /sbin/dhclient, which is included in Debian's # dhcp3-client package. option rfc3442-classless-static-routes code 121 = array of unsigned integer 8; #send host-name = gethostname(); send host-name = "comppi" append domain-name = "ns.exampledomain.com" request subnet-mask, broadcast-address, time-offset, routers, domain-name, domain-name-servers, domain-search, host-name, dhcp6.name-servers, dhcp6.domain-search, netbios-name-servers, netbios-scope, interface-mtu, rfc3442-classless-static-routes, ntp-servers;