Hello.
Is that someone just draw my attention to any potential incongruities, redundancy, lack or error on the following config that seems to work.
For example, the domain is set in the network card config, in dnsmasq.conf and in hosts.
yast2 Network setting
yast2 Network setting
Global Options
General Network setting
Network setup methode : **Wicked service**
DHCP Client Options
Hostname to send : **Auto**
Overview
General
Activate : **At boot time**
Firewall : **external zone**
Address
checked : **Statically assign**
IP : **192.168.130.123**
Subnet : **/24**
Hostname :** hostname-1.my-dom-test.nwk**
Hardware
Device Name : **srv_eth0**
Hostname/DNS
Hostname and domain name
***everey things are unchecked but*** :
Hostname : **hostname-1**
Domain name : **my-dom-test.nwk**
Modify dns policy
**Use default policy**
Name server and domain search list
Name server 1 : **127.0.0.1**
Domain search
**my-dom-test.nwk**
Routing
Default gateway : **192.168.130.230**
Routing table
Destination : **192.168.2.200**
Gateway : **192.168.130.230**
Genmasq : **-**-**-******
Device : **srv_eth0**
#—
File : /etc/hosts
#/etc/hosts
# hosts This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server.
# Syntax:
#
# IP-Address Full-Qualified-Hostname Short-Hostname
#
127.0.0.1 localhost.localdomain localhost
192.168.130.123 hostname-1.my-dom-test.nwk hostname-1
######## every things relative to dhcp v6 have been removed
#—
File : /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.
#
nameserver 127.0.0.1
#—
File : /etc/dnsmasq.conf
# /etc/dnsmasq.conf
#
# Never forward plain names (without a dot or domain part)
domain-needed
# Never forward addresses in the non-routed address spaces.
bogus-priv
# Change this line if you want dns to get its upstream servers from
# somewhere other that /etc/resolv.conf
resolv-file="/etc/resolv.dnsmasq.conf"
# Add local-only domains here, queries in these domains are answered
# from /etc/hosts or DHCP only.
local=/my-dom-test.nwk/192.168.130.123
# Add domains which you want to force to an IP address here.
# The example below send any host in double-click.net to a local
# web-server.
address=/my-dom-test.nwk/192.168.130.123
#
# SPAM ADDRESS
conf-file=/etc/dnsmasq.conf.banned
# If you want dnsmasq to listen for DHCP and DNS requests only on
# specified interfaces (and the loopback) give the name of the
# interface (eg eth0) here.
# Repeat the line for more than one interface.
#interface=
interface=srv_eth0
# Set this (and domain: see below) if you want to have a domain
# automatically added to simple names in a hosts-file.
expand-hosts
# Set a different domain for a particular subnet
#domain=wireless.thekelleys.org.uk,192.168.2.0/24
domain=my-dom-test.nwk,192.168.130.0/24
# Uncomment this to enable the integrated DHCP server, you need
# to supply the range of addresses available for lease and optionally
# a lease time. If you have more than one network, you will need to
# repeat this for each network on which you want to supply DHCP
# service.
#dhcp-range=192.168.0.50,192.168.0.150,12h
dhcp-range=192.168.130.165,192.168.130.199,16h
# COMPUTER
# Always set the name of the host with hardware address
# 11:22:33:44:55:66 to be "fred"
#dhcp-host=11:22:33:44:55:66,fred
dhcp-host=00-26-2D-62-64-90,192.168.130.70,PORTABLE-ACER-COCO
#dhcp-host=00-26-2D-62-64-90,PORTABLE-ACER-COCO
dhcp-host=60:a4:4c:7d:b9:28,192.168.130.80,PORTABLE-ASUS-JC
#dhcp-host=60:a4:4c:7d:b9:28,PORTABLE-ASUSJC
dhcp-host=00:1B:24:56:F1:36,192.168.130.90,PORTABLE-HP-SECOUR
#dhcp-host=00:1B:24:56:F1:36,PORTABLE-HP
#
# PRINTER
#
dhcp-host=00:1b:a9:3c:be:76,192.168.130.102,BROTHER-HL2150N
dhcp-host=30:05:5c:3a:e3:af,192.168.130.103,BROTHER-HL2250DN
dhcp-host=00:15:99:8a:a0:19,192.168.130.104,SAMSUNG-CLP325W
dhcp-host=00:24:be:f4:6d:4c,192.168.130.105,SONY-TV-BRAVIA-32EX500
# Do the same thing, but using the option name
#dhcp-option=option:router,1.2.3.4
# set the gateway to 192.168.130.230
dhcp-option=option:router,192.168.130.230
# The DHCP server needs somewhere on disk to keep its lease database.
# This defaults to a sane location, but if you want to change it, use
# the line below.
dhcp-leasefile=/var/lib/misc/dnsmasq.leases
# Set the DHCP server to authoritative mode. In this mode it will barge in
# and take over the lease for any client which broadcasts on the network,
# whether it has a record of the lease or not. This avoids long timeouts
# when a machine wakes up on a new network. DO NOT enable this if there's
# the slightest chance that you might end up accidentally configuring a DHCP
# server for your campus/company accidentally. The ISC server uses
# the same option, and this URL provides more information:
# http://www.isc.org/files/auth.html
dhcp-authoritative
# For debugging purposes, log each DNS query as it passes through
# dnsmasq.
#log-queries
# Log lots of extra information about DHCP transactions.
log-dhcp
# Include another lot of configuration options.
## done #conf-file=/etc/dnsmasq.more.conf
## done #conf-dir=/etc/dnsmasq.d
#—
File : /etc/dnsmasq.conf.banned
# /etc/dnsmasq.conf.banned
#
# BANNED DNS SERVER
address="/101com.com/127.0.0.127"
address="/101order.com/127.0.0.127"
address="/123found.com/127.0.0.127"
address="/123pagerank.com/127.0.0.127"
address="/180hits.de/127.0.0.127"
address="/180searchassistant.com/127.0.0.127"
address="/1x1rank.com/127.0.0.127"
address="/207.net/127.0.0.127"
.........
.........
.........
address="/zintext.com/127.0.0.127"
address="/zmedia.com/127.0.0.127"
#—
File : /etc/resolv.dnsmasq.conf
# /etc/resolv.dnsmasq.conf
#
# PUBLIC DNS
#
nameserver 8.8.8.8
nameserver 8.8.4.4
#
Any comment is welcome