/srv/irclogs.ubuntu.com/2021/06/28/#ubuntu-server.txt

=== cpaelzer_ is now known as cpaelzer
lordievaderGood morning08:10
xuehi08:15
xuegoodbye08:15
utkarsh2102that was fast :P13:57
octav1aHey, I have some machines I set up on my university network with one hostname, and now I desire to change that hostname. I did the tutorial for hostnamectl, --pretty, and changing the /etc/hosts. However, over the local network I still can not log into these machines using the new hostname. Is it a matter of waiting some time or do I need to do something else?14:33
oerheks2 places, edit /etc/hosts and /etc/hostname14:34
oerhekshostnamectl is just for this session, it does not get stored14:34
patdk-laphow do you mean login using the new hostname?14:36
patdk-lapall those things are local machine only, and don't affect other systems14:36
patdk-lapyou likely need to update dns14:36
patdk-lapunless you are using mdns, in that case I personally dunno what is advertizing mdns14:36
patdk-lapdid you reboot after your changes?14:36
octav1aI don't know how the university DNS works, but when I installed the OS's to begin with, the name i chose was somehow automatically broadcast, and other computers could see it. 14:38
octav1aI just want to repeat whatever was triggered during the initial installation process. 14:38
octav1aIs there a way to send a packet: "hey, my dns changed" ?14:39
oerheksjust edit /etc/hostname too, and you should be fine14:39
oerheksnothing to do with dns/mdns..14:39
octav1aoerheks: it is, because I want this name o work when connecting via ssh  from other computers on the network. 14:39
octav1aChanging hat file /etc/hostname seems to have been done automatically by hostnamectl14:40
patdk-lapwell, there are only two ways dns changes14:41
patdk-lapmdns, that is done with broadcasts from your own system14:41
patdk-lapor via dhcp dns updates14:41
patdk-lapI would think a reboot would *fix* either of those14:42
oerheksoctav1a, if the name matches, there should be no issue..14:42
octav1apatdk-lap: can these services be restarted / updated without a reboot?14:42
patdk-lapyes14:42
patdk-laphow? dunno what does mdns, so I dunno14:43
patdk-lapdhcp you have to restart networking on that interface14:43
octav1asudo dhclient -r && sudo dhclient 14:48
octav1aseems to be the solution. 14:48
=== Guest53 is now known as utkarsh
=== softpaw is now known as harmonik
=== harmonik is now known as softpaw
=== DArqueBish0p is now known as DArqueBishop
=== tomreyn_ is now known as tomreyn

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!