In the enterprise network, As a client how can i connect my pi to the (Windows)DNS server ? so that i can ssh/ping the pi by hostname without the ip address.



Instead of avahi-daemon and samba. Anyone have any idea to solve the problem ?


  • would that not be something you would need to configure on the (Windows)DNS server perhaps? (i.e. not relevant to this forum at all) Commented Sep 17, 2018 at 4:44
  • only configure at (Windows)DNS server ? got any configuration required in raspberry pi?
    – XYZ
    Commented Sep 17, 2018 at 4:52
  • does the Pi get IP address using DHCP? Commented Sep 17, 2018 at 5:00
  • Yes the pi gotten the IP address
    – XYZ
    Commented Sep 17, 2018 at 14:01
  • This appears to be a question about configuring DNS in Windows. In the enterprise network, the usual way is to tell the IT personnel to set it up for you. Commented Sep 25, 2018 at 13:12

1 Answer 1


Name resolution is made by asking DNS server. The RasPi has set default DNS server to ask but of course not your (Windows)DNS server. You do it by editing /etc/dhcpcd.conf and insert an option

static domain_name_servers=

with the ip address of your (Windows)DNS server. There are examples in /etc/dhcpcd.conf.

Your DNS server should support dynDNS so it bind the host name to the ip address the host has gotten from the DHCP server. I don't know your environment if this works or if you can make it working. But you have always the option to define a static mapping in the DNS server.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.