I ran into problems when configuring dnsmasq on my linux server.
I was forced to use a laptop under MS windows, to access my NETGEAR router.
I was unable to connect to its address 192.168.100.100
[LEFT]
What are all config files should I backup so I could restore a working network config.
If you once had a working configuration without dnsmasq and you now wish to not use it, maybe it would be simpler to simply uninstall dnsmasq and configure your Network Device in YAST appropriately (DHCP Client or with a static address) (Configuring in YAST should restart your network services automatically)?
If you are still trying to configure dnsmasq for some reason, you should probably describe your problem and maybe post your dnsmasq configuration.
If you are simply unable to “connect” to your openSUSE server using its address 192.168.100.100 (did I understand that correctly?) then you still need to describe what you meant by “connect” (app used, protocol) and what you might have done to test network connectivity (did probe a port using something like telnet or did you simply ping or did you simply give up after trying something like a web browser?).
If you make changes on a computing system (not just Linux or openSUSE) ordinarily a backup does not automatically get made when you make changes.
If you want to have a fallback or “undo” you have to almost always have to create one yourself (well, now with BTFRS, ZFS and similar file systems this is beginning to change but recovery is not necessarily defined atomically to what you want restored).
There is no way to know what a proper network configuration is for your openSUSE server without details about how it’s supposed to be set up on your network, eg
My question is very basic.
Dnsmasq is configured to act as dns server and as a dhcp on a subnet 192.168.100.0/24
My problem with dnsmasq configuration in not in the scope of this thread.
The Linux server should have fixed address : 192.168.100.123
The gateway have fixed address : 192.168.100.230
The netconfig program resolve nameserver address as 192.168.2.200
MAIN ISP ROUTER IP ADDRESS (ethernet side) 192.168.2.200
NETGEAR Router for test on subnet
Internet Port side
IP Address 192.168.2.21
DHCP Client
IP Subnet Mask 255.255.255.0
ISP Router Access 192.168.2.200
LAN Port Side
Gateway 192.168.100.230
DHCP Server
IP Subnet Mask 255.255.255.0
DHCP Server address range
Starting IP Address 192.168.100.100
Ending IP Address 192.168.100.150
When trying to remove dnsmasq config I have set manually my linux box IP address to 192.168.100.123 :
ifconfig eth0 192.168.100.123
I tried to restore /etc/resolv.conf by hand :
nameserver 192.168.2.200
and with this command :
netconfig update -f
But does not help.
got error
network unreachable
As I dislike to use MS Windows to access again to my Netgear router,
when things go wrong, what files I must restore ( from a working set of files ) to access again my Netgear router. During my test on dnsmasq my Netgear router is in standby mode as dhcp server functionality is set to off.
The simplest way to accomplish what I think you want to do (restore working name resolution after removing dnsmasq) is simply regenerate /etc/resolv.conf with the settings you configure in YAST.
Are you running a Desktop?
Use YAST2 > Network Settings > Hostname/DNS tab
Verify your DNS is either set by DHCP or specified.
Save.
Remove your current resolv.conf as follows and restart your network services as follows
Or,
If not running a Desktop, you can still perform the above but instead of verifying your DNS configuration using the GUI YAST, run ncurses YAST at the command line
$ yast
and then run the same command above to delete the resolv.conf file and restart networking.