opensuse 12.3 - dhcp error during startup

On this site there is no serveur acting as dns server.
It is a local network and the dns request are process thru the DSL modem router.
The network configuration is the same for years.

This DSL modem router is configured to give a preselected ip adress for some hardware ( via mac address ) :
For the linux server : 192.168.xxx.yyy
For the B/W laser printer : 192.168.xxx.yyy
For the Colour laser printer : 192.168.xxx.yyy

The three other notepads get their address randomly.

/etc/resolv.conf :

LINUX-TEST-XYZ:~ # cat /etc/resolv.conf
### /etc/resolv.conf file autogenerated by netconfig!
#
# Before you change this file manually, consider to define the
# static DNS configuration using the following variables in the
# /etc/sysconfig/network/config file:
#     NETCONFIG_DNS_STATIC_SEARCHLIST
#     NETCONFIG_DNS_STATIC_SERVERS
#     NETCONFIG_DNS_FORWARDER
# or disable DNS configuration updates via netconfig by setting:
#     NETCONFIG_DNS_POLICY=''
#
# See also the netconfig(8) manual page and other documentation.
#
# Note: Manual change of this file disables netconfig too, but
# may get lost when this file contains comments or empty lines
# only, the netconfig settings are same with settings in this
# file and in case of a "netconfig update -f" call.
#
### Please remove (at least) this line when you modify the file!
search lan
nameserver 192.168.2.200
LINUX-TEST-XYZ:~ #

current /etc/host that does not work

#                                                                                                                                              
# IP-Address  Full-Qualified-Hostname  Short-Hostname
#

127.0.0.1       localhost 
192.168.130.100 LINUX-TEST-XYZ

another /etc/host that does not work

#                                                                                                                                              
# IP-Address  Full-Qualified-Hostname  Short-Hostname
#

127.0.0.1            localhost.localdomain        localhost 

One which works

192.168.130.100    LINUX-TEST-XYZ.localdomain        LINUX-TEST-XYZ
127.0.0.1            localhost.localdomain        localhost

Ok that’s solve the problem for the server.

But for the notepads ?
For the moment I have not the use of the command hostname.

/etc/resolv.conf

### /etc/resolv.conf file autogenerated by netconfig!
#
search lan
nameserver 127.0.0.1

/etc/dnsmasq.conf

# Add other name servers here, with domain specs if they are for
# non-public domains.
#server=/localnet/192.168.0.1
server=192.168.x.y

/etc/hosts

1-

FAIL ! ! !

change hostname by dhcp is check

hostname : LINUX-TEST-123 / Domain name :

in Konsole hostname is LINUX-TEST-123

hostname -f → hostname: Name or service not known

hostname -s → hostname: Name or service not known

-------------

127.0.0.1            localhost.localdomain        localhost

2-

FAIL ! ! !

change hostname by dhcp is uncheck

hostname : LINUX-TEST-123 / Domain name : localdomain

in Konsole hostname is LINUX-TEST-123

hostname -f → hostname: Name or service not known

hostname -s → hostname: Name or service not known

-------------

127.0.0.1            localhost.localdomain        localhost

3-

work

change hostname by dhcp is uncheck

hostname : LINUX-TEST-123 / Domain name : localdomain

in Konsole hostname is LINUX-TEST-123

hostname -f → LINUX-TEST-123.localdomain

hostname -s → LINUX-TEST-123

-------------

192.168.130.100    LINUX-TEST-123.localdomain    LINUX-TEST-123
127.0.0.1            localhost.localdomain        localhost

4-

work

change hostname by dhcp is check

hostname : LINUX-TEST-123 / Domain name : localdomain

in Konsole hostname is LINUX-TEST-123

hostname -f → LINUX-TEST-123.localdomain

hostname -s → LINUX-TEST-123

-------------

192.168.130.100    LINUX-TEST-123.localdomain    LINUX-TEST-123
127.0.0.1            localhost.localdomain        localhost

5-

FAIL ! ! !

change hostname by dhcp is uncheck

hostname : LINUX-TEST-123 / Domain name : localdomain

in Konsole hostname is LINUX-TEST-123

hostname -f → hostname: Name or service not known

hostname -s → hostname: Name or service not known

-------------

192.168.130.100    LINUX-TEST-**XYZ**.localdomain    LINUX-TEST-**XYZ**
127.0.0.1            localhost.localdomain        localhost

6-

work

change hostname by dhcp is check

hostname : LINUX-TEST-**123 **/ Domain name : localdomain

in Konsole hostname is LINUX-TEST-XYZ

hostname -f → LINUX-TEST-XYZ.localdomain

hostname -s → LINUX-TEST-XYZ

-------------

192.168.130.100    LINUX-TEST-**XYZ**.localdomain    LINUX-TEST-**XYZ**
127.0.0.1            localhost.localdomain        localhost

7-

change hostname by dhcp is uncheck

hostname : LINUX-TEST-123 / Domain name :

#Not possible
#Domain name must be set if “change hostname by dhcp” is uncheck

8-

work

change hostname by dhcp is check

hostname : LINUX-TEST-123 / Domain name :

in Konsole hostname is LINUX-TEST-XYZ

hostname -f → LINUX-TEST-XYZ.localdomain

hostname -s → LINUX-TEST-XYZ

-------------

192.168.130.100    LINUX-TEST-**XYZ**.localdomain    LINUX-TEST-**XYZ**
127.0.0.1            localhost.localdomain        localhost

Got the same result with or without robin suggestion.
See the result in previous post #23 just after this one.

But I believe this is where you are mistaking… the DSL router does provide DNS and I think it should provide you reverse DNS too - did you play with its settings in the meantime? (before / after switching to 12.3).

You can try to boot a live-cd / dvd of 12.1 and see if this persists?

I would rather look deeper in the settings of the DSL router and see if there is a problem with it.

You say that you did “reserve” (thats the term for preselecting) few IP’s for those 3 Ethernets and the other connections get random IP’s from the pool. Check if there is a mistake there in the DHCP server and also “purge” the cache of the DHCP server…

Cheers.

PS
You seem not to pay attention to rather important things, e.g.:

  • for /etc/hosts file you put the short name in the place where the Fully Qualified Domain Name should be (as written in the #comments above) and then you say “doesn’t work”, well it shouldn’t because it is not in the required order… IIRC in that file you use the TAB for separating the entries

  • you should definitely decide on WHO names the machines, i.e. your DHCP server (the DSL router) or you / the machine itself, hence check the names on the router and tick or un-tick “change name by DHCP”… but be sure you have same thing on the “reserved” IP/name as you put in YaST.

Ok I redo the test just to be sure (just for me).
I will give news as soon as possible.

I think that my dsl router ( I would re read the doc ) is unable to name my server machine. It can just send/fix reserved IP address for the corresponding mac address. So the machine will name itself and I will un-tik “change name by DHCP”.

It was working before I upgrade to 12.3. I guess I had made a careless mistake during the re-installation process.

Thank you for taking time to read me.

In /etc/hosts header :

#                                                                                                                                               
# IP-Address  Full-Qualified-Hostname  Short-Hostname 
# 

In my post N°25 - TEST N°)5 :

5-
#
# FAIL ! ! !
# change hostname by dhcp is uncheck
# hostname : LINUX-TEST-**123**  /  Domain name : **localdomain**
# in Konsole hostname is LINUX-TEST-123
# hostname -f --> hostname: Name or service not known
# hostname -s --> hostname: Name or service not known
# -------------
     Code:
     192.168.130.100    LINUX-TEST-**XYZ**.localdomain    LINUX-TEST-**XYZ**
127.0.0.1            localhost.localdomain        localhost 

IP-Address, Full-Qualified-Hostname, Short-Hostname order is correct.

Is it working now?

I think I noticed another error or you just need to restart the network after your changes:

in /etc/resolv.conf you have

search lan

but I think you should have

search localdomain

since that is what you declared as termination of your FQDN.

I was talking about your post No. 22:

current /etc/host that does not work
Code:

 #                                                                                                                                              

IP-Address Full-Qualified-Hostname Short-Hostname

127.0.0.1 localhost
192.168.130.100 LINUX-TEST-XYZ

:slight_smile: