Could not resolve address 127.0.0.1

Im running trinity on ubuntu linux but when i try to run my authserver it says it connects then goes to Updating Realmlist then sats Could not resolve address 127.0.0.1… It was working before im not sure how it messed up. Any reason why?