IP Addresses

Knowing the IP addresses of the build machines Travis CI uses can be helpful when you need them safelisted to access your internal resources. Since builds run in a variety of different infrastructures, the IP ranges to safelist depend on the infrastructure your builds are running on.

Infrastructure NAT hostname Current DNS Last recorded IPs
OS X nat.macstadium-us-se-1.travisci.net A recs 207.254.16.35 207.254.16.36 207.254.16.37 207.254.16.38 207.254.16.39
Container-based Linux nat.linux-containers.travisci.net A recs 34.233.56.198, 34.234.4.53, 52.3.55.28, 52.45.185.117, 52.45.220.64, 52.54.31.11, 52.54.40.118, 54.208.31.17, 147.75.192.163
Sudo-enabled Linux nat.gce-us-central1.travisci.net A recs 35.184.48.144, 35.184.96.71, 35.184.226.236, 35.188.1.99, 35.188.73.34, 35.188.184.134, 35.192.19.50, 35.192.85.2, 35.192.136.167, 35.192.187.174, 35.192.217.12, 35.193.7.13, 35.193.203.142, 35.193.211.2, 35.202.68.136, 35.202.78.106, 35.202.145.110, 35.224.112.202, 35.226.126.204, 104.154.113.151, 104.154.120.187, 104.197.236.150, 146.148.51.141, 146.148.58.237
(all combined) nat.travisci.net A recs (sum of all above)

Note that these ranges can change in the future, and the best way to keep an updated safelist is to use the current A records for the NAT hostname shown above, such as by using dig:

dig +short nat.travisci.net | sort

or using a service like dnsjson.com to interact with JSON:

curl -s https://dnsjson.com/nat.travisci.net/A.json | jq '.results.records|sort'

Note that the IP addresses used for notifications are different.

More details about our different infrastructures are available on the virtualization environments page.