* Admin Beckspaced
Dear opensuse users,
I'm running the latest opensuse leap 15.1
just today I ran into a situation where I needed to point a domain to a specific IP adress.
If I'm on my windows client I just update the hosts file
112.202.123.179 somedomain.com
copy that file to /windows/system32/drivers/etc
open a terminal and run 'ipconfig /flushdns'
and voila ... whatever way I try to access the domain, e.g. do a ping or visit the domain in a web browser it points to the IP adress defined in the hosts file.
How can I do this on an opensuse box?
there's also a /etc/hosts file but it doesn't seem to get picked up?
there's also a DNS running on the box (same like on the windows computer) but I just want this specific domain to have a specific static IP address
to have current box access ThisBox as 112.202.123.179, simply add to /etc/hosts, 112.202.123.179 somedomain.com ThisBox no need to do any refresh and "ifconfig" is the depricated linux invocation for ipconfig, now "ip" https://www.tecmint.com/ifconfig-vs-ip-command-comparing-network-configurati... ifconfig ip a -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org