Jump to content

Is there a way to populate "search" option in /etc/resolv.conf?


Recommended Posts

I looked quickly thru /etc/rc.inet1.conf, and it does not include "search" at all.

On the other hand, it seems like /etc/resolv.conf is staying more or less intact in-between upgrades/IP address changes.

 

Question: is there a way to specify search domain list from gui, or I just edit /etc/resolv.conf and hope it does not change?

Link to comment
20 hours ago, xcore said:

Thank you, I put a feature request for /etc/rc.inet1.conf

No need for a feature request, its jus a 1liner you can do yourself. The search option is only needed if your site runs on more than one domain. The own domain is default as long as "search" is absent.

Like (example):

echo "search xyz.com,mydomain.com,anything.org" >> /etc/resolv.conf

the go file is executed after everything is up and running (without the gui, that is started by the go file), so rc.inet1.conf has already run before.

(note ">>", not just ">" because you want to append to resolv.conf, not overwrite it totally)

 

Edited by MAM59
Link to comment

The system is supposed to work over reboots and updates with no unintended configuration changes, that's the reason of the feature request.

 

Is there a way to specify domainname in the Unraid configuration? Because if not, I'm back to square 1, and if it's possible, it's clearly my bad for not paying attention. Please point me to the place where it's configured in UI in the latter case.

 

Please don't suggest putting FQDN into "settings->Identification->Server name" unless it's parsed and only host part ends up in /etc/hostname.

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...