July 16, 20232 yr Hi Guys I just want to know why I cant setup a static DNS Adress when IP is configured to static on unraid Webinterface ? Same goes with IPv6... I can only change it to static DNS if Address configuration is automatic / DHCP ? I thought DNS configuration is seperated from IP configuration, so it doesnt matter if IP is set to DHCP or static to change DNS settings ? have a nice day! Edited July 16, 20232 yr by MisterT changed title - solved
July 16, 20232 yr Community Expert I think you are getting something wrong. You can only set DNS entries for ETH0, because these are global for all interfaces. And you can set them only if you use static settings, not DHCP (just the other way round from your posting). The GUI is a bit misleading, you THINK you can set DNS for every interface, but that is wrong. (DNS is a high level service, it works above routing, so you can use any address here, including external ones. Would not make much sense if you set it to 1.1.1.1 on ETH0 and to 8.8.8.8 on ETH1, both would be contacted using the default gateway which can only be reached over ONE interface)
July 16, 20232 yr Author I only have eth0 on my unraid, but good to know - make sense Yep I know coz DHCP gives you DNS entrys anyway. But I fully agree your post but on my Server (Unraid 6.12.3) I cant change to static DNS on static IP (like I said in first post). Watch Screenshots: This is my current IPv4 config... (DNS server is fixed to automatic) When I change IPv4 Address config to automatic: I can change DNS Servers... But If I switch back IPv4 Address config to static: DNS Address config is fixed to static (like you said) - BUT If I setup my DNS Server here and save it... The Settings will fall back like in Screenshot 1 and "/etc/resolv.conf" is empty also... For now: I am using my current IPv4 Settings (Screenshot 1) with a startup script (using go file on flash device) - which replace complete resolv.conf with my correct DNS Servers and domains after complete startup. Edited July 16, 20232 yr by MisterT
July 16, 20232 yr Community Expert hmm, ok, then sorry. I have static settings and they still work with 6.12.3.
July 16, 20232 yr Author Hm ok, shall I repost this topic to bug reports or not ? Not pretty sure for now if this is a real bug or someone can reproduce ? Edited July 16, 20232 yr by MisterT
July 16, 20232 yr Community Expert Solution you should wait for somebody that can confirm this too. or, delete network settings from the stick, reboot and try a new config
July 16, 20232 yr I have seen this happening when the network.cfg file contains incorrect/corrupted information. As suggested above delete the file "network.cfg" and redo your network settings.
July 16, 20232 yr Author Yep fixed it! Both @bonienl @MAM59 was right, but the KEY! was to reboot... deleting network.cfg without rebooting -> fix nothing ! Thanks for your help !
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.