The hostname you set on a give system has nothing to do with the hostname that other computers on your network know this computer by, unless you're making use of DHCP to delve out your IP addresses AND your DHCP sever is setup to communicate with your domains DNS server. I'll describe methods for setting that up down below in the Sending your hostname to DHCP section.
Why can't I ping bbb but still aaa?
If your domain is not making use of what's called dynamic DNS (this is where the clients can provide their hostnames' to the DHCP server) then there is really nothing you can do to change your hostname to IP address mapping that exists in your domains DNS server.
If you've continued to get the same lease when your system was using Windows 7 (which you should be since it's the same hardware using the same MAC address), then your DHCP server is likely continuing to use the hostname that was originally reported when you were using Win 7.
Using the method described below should get your Linux host to send its hostname if it isn't already doing so.
Sending your hostname to DHCP
If your DHCP server supports it you might want to try and have your client send the desired hostname that it wants. Add the following to the file
send host-name 'your-hostname-here';
If you want to send a fully qualified domain name (fqdn) - myhost.mydomain.com instead of just myhost you need to add these lines too:
send fqdn.fqdn "myhost.mydomain.com.";
send fqdn.encoded on;
send fqdn.server-update off;
also request fqdn, dhcp6.fqdn;
The OP was asked to try the following commands and report back:
dig <hostname> @<router ip>
The OP reported that this worked so it was determined to try adding the router's IP explicitly to his
It was suggested to try adding the following to the
prepend domain-name-servers 192.168.2.1;
Given you're able to now ping servers using your router's DNS server when you added 192.168.2.1, but not the internet, I would suggest you add some external DNS servers as well using the above prepend option like so:
prepend domain-name-servers 192.168.2.1, 18.104.22.168, 22.214.171.124;
This will add your router as a DNS resolver along with Google's DNS servers.