Domain name doesn't stick

classic Classic list List threaded Threaded
27 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Domain name doesn't stick

James Knott
I'm running 42.3.  One thing I've noticed is that the domain name, as
entered in the Domain Name box, in Yast Network Settings, doesn't last
through a reboot.  It also gets removed from /etc/resolv.conf.

Any idea why this happens?  How to fix it?

tnx jk


--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Domain name doesn't stick

Andrei Borzenkov
17.01.2018 20:06, James Knott пишет:
> I'm running 42.3.  One thing I've noticed is that the domain name, as
> entered in the Domain Name box, in Yast Network Settings,

Do you mean Hostname/DNS tab?

> doesn't last
> through a reboot.


What exactly does it mean? Where you expect it, what files you check,
what commands you use?

>  It also gets removed from /etc/resolv.conf.
>

When it appears in resolv.conf before it gets removed?

> Any idea why this happens?  How to fix it?
>
> tnx jk
>
>


--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Domain name doesn't stick

James Knott
On 01/17/2018 12:16 PM, Andrei Borzenkov wrote:
> 17.01.2018 20:06, James Knott пишет:
>> I'm running 42.3.  One thing I've noticed is that the domain name, as
>> entered in the Domain Name box, in Yast Network Settings,
> Do you mean Hostname/DNS tab?
>

Yes.

>> doesn't last
>> through a reboot.
>
> What exactly does it mean? Where you expect it, what files you check,
> what commands you use?

It means that after a reboot, it's no longer in resolv.conf nor in
Network Settings on the Hostname/DNS tab.
>
>>  It also gets removed from /etc/resolv.conf.
>>
> When it appears in resolv.conf before it gets removed?

Yes.  Of course it's in resolv.conf.  It's saved there when saved in
Yast and disappears from both on reboot.  The resolv.conf file shows a
write date & time corresponding to the reboot.  So, something is writing
to resolv.conf, without the domain name.
>
>> Any idea why this happens?  How to fix it?
>>
>> tnx jk
>>
>>
>


--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Domain name doesn't stick

Carlos E. R.-2
On 2018-01-17 18:36, James Knott wrote:

> On 01/17/2018 12:16 PM, Andrei Borzenkov wrote:
>> 17.01.2018 20:06, James Knott пишет:
>>> I'm running 42.3.  One thing I've noticed is that the domain name, as
>>> entered in the Domain Name box, in Yast Network Settings,
>> Do you mean Hostname/DNS tab?
>>
>
> Yes.
>
>>> doesn't last
>>> through a reboot.
>>
>> What exactly does it mean? Where you expect it, what files you check,
>> what commands you use?
>
> It means that after a reboot, it's no longer in resolv.conf nor in
> Network Settings on the Hostname/DNS tab.
>>
>>>  It also gets removed from /etc/resolv.conf.
>>>
>> When it appears in resolv.conf before it gets removed?
>
> Yes.  Of course it's in resolv.conf.  It's saved there when saved in
> Yast and disappears from both on reboot.  The resolv.conf file shows a
> write date & time corresponding to the reboot.  So, something is writing
> to resolv.conf, without the domain name.
Change hostname from dhcp server is active in YaST network settings,
perhaps?

--
Cheers / Saludos,

                Carlos E. R.
                (from 42.2 x86_64 "Malachite" at Telcontar)


signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Domain name doesn't stick

James Knott
On 01/17/2018 12:47 PM, Carlos E. R. wrote:
>> Yes.  Of course it's in resolv.conf.  It's saved there when saved in
>> > Yast and disappears from both on reboot.  The resolv.conf file shows a
>> > write date & time corresponding to the reboot.  So, something is writing
>> > to resolv.conf, without the domain name.
> Change hostname from dhcp server is active in YaST network settings,
> perhaps?

I don't use DHCP on that computer.  Static config only.  Also, the IPv6
router advertisements are providing the domain name, but I can't resolve
local hosts, unless I include the domain name.  Manually adding it to
Hostname/DNS makes that work again.



--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Domain name doesn't stick

Andrei Borzenkov
In reply to this post by James Knott
17.01.2018 20:36, James Knott пишет:
> On 01/17/2018 12:16 PM, Andrei Borzenkov wrote:
>> 17.01.2018 20:06, James Knott пишет:
>>> I'm running 42.3.  One thing I've noticed is that the domain name, as
>>> entered in the Domain Name box, in Yast Network Settings,
>> Do you mean Hostname/DNS tab?
>>
>
> Yes.
>

What are other settings (nameservers, DNS policy)?

>>> doesn't last
>>> through a reboot.
>>
>> What exactly does it mean? Where you expect it, what files you check,
>> what commands you use?
>
> It means that after a reboot, it's no longer in resolv.conf nor in
> Network Settings on the Hostname/DNS tab.

What "hostname" and "hostname -d" say? What /etc/hostname contains
before and after reboot?

>>
>>>  It also gets removed from /etc/resolv.conf.
>>>

That's likely side effect of something else, file is rebuilt every time
network configuration changes. Most likely your hostname changes.

>> When it appears in resolv.conf before it gets removed?
>
> Yes.  Of course it's in resolv.conf.  It's saved there when saved in
> Yast and disappears from both on reboot.  The resolv.conf file shows a
> write date & time corresponding to the reboot.  So, something is writing
> to resolv.conf, without the domain name.
>>
>>> Any idea why this happens?  How to fix it?
>>>
>>> tnx jk
>>>
>>>
>>
>
>


--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Domain name doesn't stick

Andrei Borzenkov
17.01.2018 21:04, Andrei Borzenkov пишет:

> 17.01.2018 20:36, James Knott пишет:
>> On 01/17/2018 12:16 PM, Andrei Borzenkov wrote:
>>> 17.01.2018 20:06, James Knott пишет:
>>>> I'm running 42.3.  One thing I've noticed is that the domain name, as
>>>> entered in the Domain Name box, in Yast Network Settings,
>>> Do you mean Hostname/DNS tab?
>>>
>>
>> Yes.
>>
>
> What are other settings (nameservers, DNS policy)?
>
>>>> doesn't last
>>>> through a reboot.
>>>
>>> What exactly does it mean? Where you expect it, what files you check,
>>> what commands you use?
>>
>> It means that after a reboot, it's no longer in resolv.conf nor in
>> Network Settings on the Hostname/DNS tab.
>
> What "hostname" and "hostname -d" say? What /etc/hostname contains
> before and after reboot?
>
>>>
>>>>  It also gets removed from /etc/resolv.conf.
>>>>
>
> That's likely side effect of something else, file is rebuilt every time
> network configuration changes. Most likely your hostname changes.
>

Also any difference in "grep NETCONFIG_ /etc/sysconfig/network/config"
before and after reboot?

--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Domain name doesn't stick

Carlos E. R.-2
In reply to this post by James Knott
On 2018-01-17 18:52, James Knott wrote:

> On 01/17/2018 12:47 PM, Carlos E. R. wrote:
>>> Yes.  Of course it's in resolv.conf.  It's saved there when saved in
>>>> Yast and disappears from both on reboot.  The resolv.conf file shows a
>>>> write date & time corresponding to the reboot.  So, something is writing
>>>> to resolv.conf, without the domain name.
>> Change hostname from dhcp server is active in YaST network settings,
>> perhaps?
>
> I don't use DHCP on that computer.  Static config only.  Also, the IPv6
> router advertisements are providing the domain name, but I can't resolve
> local hosts, unless I include the domain name.  Manually adding it to
> Hostname/DNS makes that work again.
I know, it doesn't matter. It is a different tick box in YaST. Please
humour me and check it up :-)


--
Cheers / Saludos,

                Carlos E. R.
                (from 42.2 x86_64 "Malachite" at Telcontar)


signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Domain name doesn't stick

James Knott
In reply to this post by Andrei Borzenkov
On 01/17/2018 01:04 PM, Andrei Borzenkov wrote:

> What are other settings (nameservers, DNS policy)?
>
>>>> >>> doesn't last
>>>> >>> through a reboot.
>>> >>
>>> >> What exactly does it mean? Where you expect it, what files you check,
>>> >> what commands you use?
>> >
>> > It means that after a reboot, it's no longer in resolv.conf nor in
>> > Network Settings on the Hostname/DNS tab.
> What "hostname" and "hostname -d" say? What /etc/hostname contains
> before and after reboot?

Hostname shows the hostname & hostname -d doesn't show anything.  Host
shows the full host name and domain, along with the IPv4 and IPv6
addresses, before reboot, but can't find the host after, unless I add
the domain.  I'm running pfSense as my firewall router, which included
DNS resolver.
>
>>> >>
>>>> >>>  It also gets removed from /etc/resolv.conf.
>>>> >>>
> That's likely side effect of something else, file is rebuilt every time
> network configuration changes. Most likely your hostname changes.

I am not changing anything.  I have a static configuration on this
computer.  The only thing that happens automatically is IPv6 SLAAC
address and the router advertisement, which contain the correct domain name.



--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Domain name doesn't stick

James Knott
In reply to this post by Carlos E. R.-2
On 01/17/2018 01:24 PM, Carlos E. R. wrote:
>>> Change hostname from dhcp server is active in YaST network settings,
>>> >> perhaps?
>> >
>> > I don't use DHCP on that computer.  Static config only.  Also, the IPv6
>> > router advertisements are providing the domain name, but I can't resolve
>> > local hosts, unless I include the domain name.  Manually adding it to
>> > Hostname/DNS makes that work again.
> I know, it doesn't matter. It is a different tick box in YaST. Please
> humour me and check it up :-)

I assume you mean Set Hostname via DHCP.  It's set to no.


--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Domain name doesn't stick

Michael Hamilton
In reply to this post by Andrei Borzenkov
On Thu, 18 Jan 2018, Andrei Borzenkov wrote:
> What /etc/hostname contains before and after reboot?

It would be interesting/revealing to see the answer to the above.

--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Domain name doesn't stick

James Knott
On 01/17/2018 02:37 PM, Michael Hamilton wrote:
> On Thu, 18 Jan 2018, Andrei Borzenkov wrote:
>> > What /etc/hostname contains before and after reboot?
> It would be interesting/revealing to see the answer to the above.

It currently shows the host name and I'll check again when I reboot.
However, the problem is not about the host name.  It's about the domain
name disappearing.

As I mentioned in another note, I use pfSense for my local DNS.  It has
the host name and domain name included for each entry.



--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Domain name doesn't stick

Freek de Kruijf
In reply to this post by James Knott
Op woensdag 17 januari 2018 18:06:23 CET schreef James Knott:
> I'm running 42.3.  One thing I've noticed is that the domain name, as
> entered in the Domain Name box, in Yast Network Settings, doesn't last
> through a reboot.  It also gets removed from /etc/resolv.conf.
>
> Any idea why this happens?  How to fix it?
>
> tnx jk

I filed a bug report about this on 2015-07-16.

https://bugzilla.opensuse.org/show_bug.cgi?id=938402

--
fr.gr.

member openSUSE
Freek de Kruijf




--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Domain name doesn't stick

Carlos E. R.-2
In reply to this post by James Knott
On 2018-01-17 20:31, James Knott wrote:

> On 01/17/2018 01:24 PM, Carlos E. R. wrote:
>>>> Change hostname from dhcp server is active in YaST network settings,
>>>>>> perhaps?
>>>>
>>>> I don't use DHCP on that computer.  Static config only.  Also, the IPv6
>>>> router advertisements are providing the domain name, but I can't resolve
>>>> local hosts, unless I include the domain name.  Manually adding it to
>>>> Hostname/DNS makes that work again.
>> I know, it doesn't matter. It is a different tick box in YaST. Please
>> humour me and check it up :-)
>
> I assume you mean Set Hostname via DHCP.  It's set to no.
Yes, that's what I meant. Well, the cases I have seen it was that.


--
Cheers / Saludos,

                Carlos E. R.
                (from 42.2 x86_64 "Malachite" at Telcontar)


signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Domain name doesn't stick

Carlos E. R.-2
In reply to this post by James Knott
On 2018-01-17 20:47, James Knott wrote:
> On 01/17/2018 02:37 PM, Michael Hamilton wrote:
>> On Thu, 18 Jan 2018, Andrei Borzenkov wrote:
>>>> What /etc/hostname contains before and after reboot?
>> It would be interesting/revealing to see the answer to the above.
>
> It currently shows the host name and I'll check again when I reboot.
> However, the problem is not about the host name.  It's about the domain
> name disappearing.

Ah, sorry, I didn't catch that detail.


--
Cheers / Saludos,

                Carlos E. R.
                (from 42.2 x86_64 "Malachite" at Telcontar)


signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Domain name doesn't stick

Michael Hamilton
In reply to this post by James Knott
On Thu, 18 Jan 2018, James Knott wrote:

> On 01/17/2018 02:37 PM, Michael Hamilton wrote:
> > On Thu, 18 Jan 2018, Andrei Borzenkov wrote:
> >> > What /etc/hostname contains before and after reboot?
> > It would be interesting/revealing to see the answer to the above.
>
> It currently shows the host name and I'll check again when I reboot.
> However, the problem is not about the host name.  It's about the domain
> name disappearing.
>
> As I mentioned in another note, I use pfSense for my local DNS.  It has
> the host name and domain name included for each entry.
>

It's been a while, and things have changed, but in the past, the fully
qualified hostname should be the first entry for the static address
in the hosts file, for example:

10.0.0.20 kosmos1.gentoo.co.nz kosmos1

So I wondered if this was the case here.  If it isn't you might try
manually setting it that way.

--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Domain name doesn't stick

James Knott
On 01/17/2018 04:52 PM, Michael Hamilton wrote:

>> As I mentioned in another note, I use pfSense for my local DNS.  It has
>> > the host name and domain name included for each entry.
>> >
> It's been a while, and things have changed, but in the past, the fully
> qualified hostname should be the first entry for the static address
> in the hosts file, for example:
>
> 10.0.0.20 kosmos1.gentoo.co.nz kosmos1
>
> So I wondered if this was the case here.  If it isn't you might try
> manually setting it that way.

As I mentioned, the problem is the domain name disappearing from
/etc/resolv.conf.  Resolv.conf normally contains a search line, that
contains the domain name.  That line is there after I save it, but is
gone after reboot.  Something is causing that file to be written without
that search line.  When that line is there, I can do a host lookup using
only the host name.  When it's not, I can't.  This has nothing to do
with /etc/hosts, as I am not using that file on this computer for name
resolution.


--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Domain name doesn't stick

Freek de Kruijf
Op woensdag 17 januari 2018 23:10:26 CET schreef James Knott:

> On 01/17/2018 04:52 PM, Michael Hamilton wrote:
> >> As I mentioned in another note, I use pfSense for my local DNS.  It has
> >>
> >> > the host name and domain name included for each entry.
> >
> > It's been a while, and things have changed, but in the past, the fully
> > qualified hostname should be the first entry for the static address
> > in the hosts file, for example:
> >
> > 10.0.0.20 kosmos1.gentoo.co.nz kosmos1
> >
> > So I wondered if this was the case here.  If it isn't you might try
> > manually setting it that way.
>
> As I mentioned, the problem is the domain name disappearing from
> /etc/resolv.conf.  Resolv.conf normally contains a search line, that
> contains the domain name.  That line is there after I save it, but is
> gone after reboot.  Something is causing that file to be written without
> that search line.  When that line is there, I can do a host lookup using
> only the host name.  When it's not, I can't.  This has nothing to do
> with /etc/hosts, as I am not using that file on this computer for name
> resolution.

Look for NETCONFIG_DNS_STATIC_SEARCHLIST= in /etc/sysconfig/network/config
The values of this parameter will be put in /etc/resolv.conf in the searchlist
with domain name(s) each time the network is started. It is there for static
network configurations.

--
fr.gr.

member openSUSE
Freek de Kruijf




--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Domain name doesn't stick

James Knott
On 01/18/2018 04:50 AM, Freek de Kruijf wrote:
> Look for NETCONFIG_DNS_STATIC_SEARCHLIST= in /etc/sysconfig/network/config
> The values of this parameter will be put in /etc/resolv.conf in the searchlist
> with domain name(s) each time the network is started. It is there for static
> network configurations.
>

At the moment, it shows my domain name.


--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Domain name doesn't stick

James Knott
In reply to this post by James Knott
On 01/17/2018 12:06 PM, James Knott wrote:
> I'm running 42.3.  One thing I've noticed is that the domain name, as
> entered in the Domain Name box, in Yast Network Settings, doesn't last
> through a reboot.  It also gets removed from /etc/resolv.conf.
>
> Any idea why this happens?  How to fix it?
>
> tnx jk
>
>

I have found a work around, put the domain name in the Domain Search
box, rather than Domain Name.  It stays there and in resolv.conf.


--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

12