# Use arp-scan to scan local network for online devicessudoaptinstallarp-scan
sudoarp-scan192.168.1.0/24
Domains
Set domain for a website
# Purchase a domain from a domain registrar ( e.g. protoni.fi )Forexampledomainhotelli.fi.I'll also use that as an example here'# If nameserver changes are not needed, for example in git pages,# then simply add the A records to DNS-settings of the Domain# registrarHome->Services->Selectdomain->Gotosettings(cPanel)->
DNS-settings->Manage# For example with Git Pages; add these A records# Check github link from the bottom of the page to see if the GitHub # Pages IPs has changed185.199.108.153
185.199.109.153
185.199.110.153
185.199.111.153
# Remove any other A record pointing to your Apex domain(e.g.protoni.fi)# Make sure that they are in use ( Use WSL or other Linux pc );# Alternatively, use the domain details tools in 'Links' sectionprotoni@DESKTOP-6VRBIN5:~$digwww.protoni.fi+nostats+nocomments+nocmd
;www.protoni.fi.INA
www.protoni.fi.0INCNAMEprotoni.fi.
protoni.fi.0INA185.199.111.153
protoni.fi.0INA185.199.109.153
protoni.fi.0INA185.199.108.153
protoni.fi.0INA185.199.110.153
# Also make sure that there are no other IP addresses, otherwise it will# not work. For example Domainhotelli has a default A record and if that# is not deleted first, DNS resolvers can't decide where to point and# just picks the first one.# Add your domain to git pagesGitHub->Repositories/your_repo->Settings->Pages->Customdomain
# Enable SSLGitHub->Repositories/your_repo->Settings->Pages->EnforceHTTPS
# Note ( Enfore HTTPS issues ):IhadissueswithenablingtheSSLsinceImovedfromNetlifyto
GitPages.Itkeptcomplainingabout'invalid certificate'orsomething
alongthoselines,soIhadtoremovethedomainfromGitHub
repositorysettings'Custom domain',save,waitforabitandthenadd
itagain
# Note ( nameserver changes ):EarlierIwasusingNetlifyandIhadtogotoNetlify's project'settings,copy-pastethe4nameserverstoDomainregistrar
(domainhotelli)andwaitforafewhoursthatDNSpointstoright
placeandthenaddtheAandMXrecordstoNetlifyinstead
# If nameservers changes are needed Set nameserversDomains->Selectyourdomain->Copypastethewebhost's name servers'here
# Note ( Fix Github domain disappearing on every commit )Createafile'CNAME'underdocs/andwriteyourdomainintherewithnonewline
Custom domain e-mail service
# I use Zoho as email service. ( can't remember exactly how the email# service setup went, so just assuming it went something like explained# below )1.Createanaccountthereorsomeothere-mailservice
2.Login->Profile->EmailAddress->AddEmailAddresswithyourown
domain
# Setup MX records. This I remember since I just did thatLogintodomainregistrar(e.g.Domainhotelli)->Gotodomainsettings
->DNSsettings->Manage->AddfollowingMXrecords:
# Name TTL Type Priority Destinationprotoni.fi3600MX10mx.zoho.eu
protoni.fi3600MX20mx2.zoho.eu
protoni.fi3600MX50mx3.zoho.eu
# Remove any other MX record pointing to your Apex domain(e.g.protoni.fi)# Make sure that they are in use ( Use WSL or other Linux pc );# Alternatively, use the domain details tools in 'Links' sectionprotoni@DESKTOP-6VRBIN5:~$digwww.protoni.fi+nostats+nocomments+nocmdMX+short
protoni.fi.
50mx3.zoho.eu.
10mx.zoho.eu.
20mx2.zoho.eu.
# Also make sure that there are no other IP addresses/domains, otherwise# it will not work. For example Domainhotelli has a default MX record and# if that is not deleted first, DNS resolvers can't decide where to# point and just picks the first one.