Ask Your Question
0

Windows DNS not updated for Fedora 25 DHCP client hostname

asked 2017-01-03 14:01:07 -0600

drdec gravatar image

I have DHCP working for my Fedora 25 workstation, it has been successfully joined to the Active Directory domain, the only problem is that the DNS (Windows) is not updated with a record for the Fedora client when it connects to the network using DHCP (also Windows). So I end up using an IP address when I want to connect to the Fedora workstation from another machine.

My /etc/sysconfig/network-scripts/ifcfg-enp0s25 file is as follows:

HWADDR=00:25:64:9F:66:FE
TYPE=Ethernet
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp0s25
UUID=17c11311-9398-36e9-93e2-612aa5002d2d
ONBOOT=yes

PEERDNS=yes
PEERROUTES=yes
DHCP_HOSTNAME=devlnx01

Everything is as configured by the NetworkManager GUI interfaces except for the DHCP_HOSTNAME which I added in an attempt to fix this issue. It's presence does not make a difference one way or the other.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2017-01-04 12:05:49 -0600

drdec gravatar image

Thanks sideburns, I see how using a static IP would be a workaround to the issue (although the approach I usually take is to configure the DHCP server to give a machine a specific IP, that way all the static IP configurations are kept in one place).

But the workstation is not a server and there is no need to set it up with a static IP - if I had a large number of machines to do this on that would get unwieldy in a hurry.

I guess what I am saying is, I'm not interested in a workaround I'd prefer to get it fixed right for the future and for the good of the fedora project.

edit flag offensive delete link more
0

answered 2017-01-03 14:23:15 -0600

sideburns gravatar image

Welcome to ask.fedora. I'm not sure if this is a Fedora question or a Windows question, but I do have a suggestion. Set your Fedora box up with a static IP, and add the machine's host name and IP address to the hosts file on your Windows box. Just make sure that the IP isn't one that your router can hand out, and you'll be OK. (As an example, you could set your router to hand out address 192.168.1.2 through 192.168.1.100 and give your Fedora box 192.168.1.101 to avoid clashes.) You can either assign the DNS numbers too, or get them from the router. Hope this helps. And, please let us know in either event, so that others can learn from this.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-01-03 14:01:07 -0600

Seen: 333 times

Last updated: Jan 04 '17