Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
18.7 Legacy Series
»
[SOLVED] DHCPv6 Static DNS Server - Some Clients Not Receiving Address
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] DHCPv6 Static DNS Server - Some Clients Not Receiving Address (Read 6076 times)
iamperson347
Newbie
Posts: 24
Karma: 1
[SOLVED] DHCPv6 Static DNS Server - Some Clients Not Receiving Address
«
on:
August 12, 2018, 07:23:55 pm »
Hello All,
I'm trying to set a static DNS server when using DHCPv6. I am currently doing this with ipv4 DHCP and it is working great. If it matters, I am using DHCP-PD on the WAN interface and other interfaces are tracking that with a prefix ID set for each non-WAN interface. I also have RA setup in assisted mode (with "Use the DNS settings of the DHCPv6 server" selected).
I set the static DNS Server address in the DHCPv6 settings for my LAN interface. Different clients appear to be receiving different DNS servers for ipv6.
Windows client: Receiving LAN gateway address as ipv6 DNS server. (ipv4 static DNS server address is good)
Android Client: Receiving specified DNS server address as ipv6 DNS server. (ipv4 static DNS server address is good as well)
iOS Client: Receiving specified DNS server address AND LAN gateway address as ipv6 DNS servers. (ipv4 static DNS server address is good)
Any settings I should check? Ideally, I would like all DHCP clients to receive the DNS server addresses I set for both ipv4 and ipv6.
Please let me know if I can do anything to help diagnose the problem.
Thank you.
«
Last Edit: August 15, 2018, 12:00:17 am by iamperson347
»
Logged
iamperson347
Newbie
Posts: 24
Karma: 1
Re: DHCPv6 Static DNS Server - Some Clients Not Receiving Address
«
Reply #1 on:
August 12, 2018, 09:54:35 pm »
I'm not super knowledgeable with the inner workings of opnsense. However, I noticed /var/dhcpd/etc/dhcpdv6.conf is getting set to the interface address instead of the DNS server address specified. The main config.xml under conf does get set appropriately though.
Logged
marjohn56
Hero Member
Posts: 1701
Karma: 179
Re: DHCPv6 Static DNS Server - Some Clients Not Receiving Address
«
Reply #2 on:
August 13, 2018, 12:43:29 pm »
Yes, you are correct, any entries there are not overiding the system settings.
I've issued a PR, in the meantime, try this patch: a9553b8
Logged
OPNsense 24.7
-
Qotom Q355G4
- ISP -
Squirrel 1Gbps
.
Team Rebellion Member
- If we've helped you remember to applaud
marjohn56
Hero Member
Posts: 1701
Karma: 179
Re: DHCPv6 Static DNS Server - Some Clients Not Receiving Address
«
Reply #3 on:
August 13, 2018, 05:25:12 pm »
I have also found something else that would cause a problem when using an override dhcpd6 on a tracked interface. If you applied the previous patch then please reverse it by applying the same patch again and then use this patch ID given below. This then allows all parameters entered into dhcpd6 settings to be used when in a tracked override mode, rather than just the ranges.
Patch ID: 3d5a5d0
Logged
OPNsense 24.7
-
Qotom Q355G4
- ISP -
Squirrel 1Gbps
.
Team Rebellion Member
- If we've helped you remember to applaud
iamperson347
Newbie
Posts: 24
Karma: 1
Re: DHCPv6 Static DNS Server - Some Clients Not Receiving Address
«
Reply #4 on:
August 13, 2018, 11:39:06 pm »
Looks like that did the trick. My iOS client isn't here to test right now, but the config file previously mentioned got updated appropriately and my windows client is getting the right ipv6 DNS server now.
Edit: iOS client got the correct DNS servers well.
Thank you for the quick turnaround!
«
Last Edit: August 14, 2018, 12:12:20 am by iamperson347
»
Logged
marjohn56
Hero Member
Posts: 1701
Karma: 179
Re: DHCPv6 Static DNS Server - Some Clients Not Receiving Address
«
Reply #5 on:
August 14, 2018, 12:12:41 am »
Good, pleased it fixed it for you.
This will NOT be in 18.7.1, so if you update you will have to re-apply the patch, I may have to modify it, but I'll test it against 18.7.1 when it's released shortly; if needed I'll update the patch.
Sorry about that, but 18.7.1 already had it's foot halfway out of the door before I wrote this and sent in a PR.
Logged
OPNsense 24.7
-
Qotom Q355G4
- ISP -
Squirrel 1Gbps
.
Team Rebellion Member
- If we've helped you remember to applaud
iamperson347
Newbie
Posts: 24
Karma: 1
Re: DHCPv6 Static DNS Server - Some Clients Not Receiving Address
«
Reply #6 on:
August 14, 2018, 12:13:56 am »
No worries. Thanks again for your help.
Logged
iamperson347
Newbie
Posts: 24
Karma: 1
Re: [SOLVED] DHCPv6 Static DNS Server - Some Clients Not Receiving Address
«
Reply #7 on:
September 11, 2018, 03:01:47 am »
Hey again.
I looked through the pull requests and I thought it looked like this was resolved for 18.7.2. However, it looks like the problem returned.
Logged
marjohn56
Hero Member
Posts: 1701
Karma: 179
Re: [SOLVED] DHCPv6 Static DNS Server - Some Clients Not Receiving Address
«
Reply #8 on:
September 11, 2018, 08:39:43 am »
I'll look and see why this has not gone through.
Logged
OPNsense 24.7
-
Qotom Q355G4
- ISP -
Squirrel 1Gbps
.
Team Rebellion Member
- If we've helped you remember to applaud
marjohn56
Hero Member
Posts: 1701
Karma: 179
Re: [SOLVED] DHCPv6 Static DNS Server - Some Clients Not Receiving Address
«
Reply #9 on:
September 11, 2018, 09:12:22 am »
I've raised an issue for this:
https://github.com/opnsense/core/issues/2713
Logged
OPNsense 24.7
-
Qotom Q355G4
- ISP -
Squirrel 1Gbps
.
Team Rebellion Member
- If we've helped you remember to applaud
franco
Administrator
Hero Member
Posts: 17657
Karma: 1611
Re: [SOLVED] DHCPv6 Static DNS Server - Some Clients Not Receiving Address
«
Reply #10 on:
September 11, 2018, 10:18:47 am »
I'm sorry if any misunderstanding has arisen from this. The fix was added to the master branch but not released in 18.7.2 as implied by the release notes.
I've talked to Martin, tested again, and it is ok to release now in 18.7.3 now that we are all on the same page about the issue at hand.
From my knowledge the original issue appeared in 18.7-RC1 with the addition of the manual DHCPv6/RADVD feature for tracked interfaces.
Sometimes patches are not immediately moved to the release to give them more time in the development version to double-check and mature if necessary.
Cheers,
Franco
Logged
iamperson347
Newbie
Posts: 24
Karma: 1
Re: [SOLVED] DHCPv6 Static DNS Server - Some Clients Not Receiving Address
«
Reply #11 on:
September 12, 2018, 03:12:25 am »
No worries! Thank you all for all that you do for the project.
Interestingly enough, the old patch from marjohn56 still worked, so I just applied that in the mean time.
Thanks again!
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
18.7 Legacy Series
»
[SOLVED] DHCPv6 Static DNS Server - Some Clients Not Receiving Address