Skip to main content
Topic: hostname (Read 310 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

hostname

Hi,

In  /etc/hostname and /etc/hosts I have set my hostname. However when I run a scan of my LAN from smartphone it identifies laptop
as artixlinux. Where I can permanently set my hostname as wanted?

A second issue: I am connected to internet via mobile 4G router. When I try to change my mac address with macchanger, after the change I can not connect to the router.When I set the address back to the original I can connect. I have read that some routers does not allow random mac addresses. Could it be the case?

Thanks

Re: hostname

Reply #1
1. Your network manager probably advertises it.
2. Can you connect to other wireless devices? Try a phone's hotspot to test.

Re: hostname

Reply #2
Hi,

So I use connman as network manager. In file /etc/connman/main.conf I have set>

Code: [Select]
AllowHostnameUpdates=false

But after reboot the issue persists. Everything seems to be fine, but when i scan the LAN it displays artixlinux.
I can see artixlinux as hostname when I run tcpdump>
Code: [Select]
21:35:52.009684 IP 192.168.0.1.domain > artixlinux.60025: 50998 NXDomain 0/1/0 (152)
21:35:55.058640 ARP, Request who-has artixlinux tell 192.168.0.1, length 28
21:35:55.064900 ARP, Request who-has 192.168.0.1 tell artixlinux, length 28



Here is another similar thread, but the solution does not work fot me
https://forum.artixlinux.org/index.php/topic,4811.15.html

I usually use hardened kernel , could it be related?


Thanks

 

Re: hostname

Reply #3
I use OpenRC as my init, and I have my hostname set in /etc/conf.d/hostname as well as /etc/hostname and /etc/hosts, and the "hostname" service is enabled to run at boot - you can see what it does in /etc/init.d/hostname. Other inits probably differ but presumably do something similar - it could be worth investigating.