Etherarp
Etherarp

Networking, Security, Linux

Share


Generating Memorable Hostnames for a Subnet

This is a simple Bash script I wrote to generate memorable names for an IP address space. The names are camelCase word pairs obtained by shuffling a list of the thousand most common English words. This produces readable and memorable hostnames, e.g. FormerAbility.

Rohan MolloyRohan Molloy

Download

#!/bin/bash
# File containing list of words (seperated by NL)
wordList='999-most-common-words.txt'
# Define the network range printed
subnet='192.168'
netwMin=0
netwMax=2
hostMin=2
hostMax=250
# Iterate and print
readarray words < <(printf "%s%s\n" $(shuf $wordList))
let "z=0"; 
for ((i=$netwMin; i<$netwMax; i++)); do   
  for ((y=$hostMin; y<$hostMax; y++)); do
   printf "%s\t%s" "$subnet.$i.$y" "${words[$z]}";    
   let "z++"; 
   done; 
done;

Modifying the network ranges

Edit these to modify the network, by default, it generates 192.168.0.0/23

subnet='192.168'
netwMin=0
netwMax=2
hostMin=2
hostMax=250

Output

192.168.0.2	BoyRecognize
192.168.0.3	CharacterGrowth
192.168.0.4	SituationShot
192.168.0.5	ScienceDinner
192.168.0.6	HeavySend
192.168.0.7	WhenPrevent
192.168.0.8	ViewMarriage
192.168.0.9	SourceProvide
192.168.0.10	PerformMuch
192.168.0.11	AnotherDead
192.168.0.12	MusicPay
192.168.0.13	AirLast
192.168.0.14	LittleMouth
192.168.0.15	IfWonder
192.168.0.16	TeamShow
192.168.0.17	DirectionWall
192.168.0.18	CompanyThink
192.168.0.19	OrderOne
192.168.0.20	NeedHear
192.168.0.21	HighRadio
192.168.0.22	WhichCommercial
192.168.0.23	MilitaryDark
192.168.0.24	FamilyRemove
192.168.0.25	WhoseJust
192.168.0.26	OfficialProperty
192.168.0.27	ImageMember
192.168.0.28	FingerEarly
192.168.0.29	PerThree
192.168.0.30	SomeonePossible
192.168.0.31	IncreaseCoach
192.168.0.32	TreatAccording
192.168.0.33	BuildAlone
192.168.0.34	SexualThough
192.168.0.35	InvestmentOld
192.168.0.36	SaveSeries
192.168.0.37	TrainingMachine
192.168.0.38	OpportunityMessage
192.168.0.39	ResourceDiscover
192.168.0.40	BehaviorChoose
192.168.0.41	CourtIts
192.168.0.42	LikelyViolence
192.168.0.43	CanItself
192.168.0.44	FollowSeveral
192.168.0.45	EnjoyConference
192.168.0.46	FactorStandard
192.168.0.47	PushAbout
192.168.0.48	BeforeGive
192.168.0.49	WillHair
192.168.0.50	OrganizationFirm
192.168.0.51	AnyDifferent
192.168.0.52	ShootReceive
192.168.0.53	ShortThus
192.168.0.54	StreetForm
192.168.0.55	RaceItem
192.168.0.56	LotWithout
192.168.0.57	MomentNorth
192.168.0.58	CellRecent
192.168.0.59	HopePopulation
192.168.0.60	HundredAge
192.168.0.61	StudentTrip
192.168.0.62	BeatChance
192.168.0.63	SoonSport
192.168.0.64	ClassTelevision
192.168.0.65	RelationshipOther
192.168.0.66	DoOutside
192.168.0.67	RecentlyOf
192.168.0.68	ModernDie
192.168.0.69	ParticularBudget
192.168.0.70	ThanLeader
192.168.0.71	ChurchCheck
192.168.0.72	EventNational
192.168.0.73	RealAction
192.168.0.74	CenturyEvidence
192.168.0.75	ConcernOur
192.168.0.76	BoxTest
192.168.0.77	GovernmentPeople
192.168.0.78	ParentKnow
192.168.0.79	BetweenOfficer
192.168.0.80	CongressQuestion
192.168.0.81	DirectorSo
192.168.0.82	PositiveSchool
192.168.0.83	AlongCold
192.168.0.84	DevelopThing
192.168.0.85	OrAdmit
192.168.0.86	DetermineHelp
192.168.0.87	UnderstandCouple
192.168.0.88	AroundWater
192.168.0.89	MagazinePolitical
192.168.0.90	PassWhite
192.168.0.91	BehindHard
192.168.0.92	SiteWhat
192.168.0.93	NewsLocal
192.168.0.94	BackNever
192.168.0.95	ValueBit
192.168.0.96	BaseTrouble
192.168.0.97	TakeGoal
192.168.0.98	MethodInclude
192.168.0.99	DegreeNation
192.168.0.100	LieWhether
192.168.0.101	ImproveHow
192.168.0.102	LateAnimal
192.168.0.103	ReportFoot
192.168.0.104	LoseKind
192.168.0.105	InterestingBank
192.168.0.106	AttorneyOthers
192.168.0.107	WellAll
192.168.0.108	ThenPiece
192.168.0.109	HangNetwork
192.168.0.110	EightFuture
192.168.0.111	KnowledgeNatural
192.168.0.112	EndReally
192.168.0.113	TruthLand
192.168.0.114	ProveBecause
192.168.0.115	OnInside
192.168.0.116	ForeignAs
192.168.0.117	WhyInto
192.168.0.118	GrowDemocrat
192.168.0.119	MakePerson
192.168.0.120	BestSpeech
192.168.0.121	StateIndividual
192.168.0.122	RelateSouthern
192.168.0.123	WeaponTalk
192.168.0.124	WalkPoor
192.168.0.125	BloodSing
192.168.0.126	BillionGeneral
192.168.0.127	TooQuality
192.168.0.128	CareAlthough
192.168.0.129	EnvironmentEnergy
192.168.0.130	HourImagine
192.168.0.131	QuiteDifference
192.168.0.132	SummerLoss
192.168.0.133	DifficultUpon
192.168.0.134	FederalKey
192.168.0.135	PracticeProtect
192.168.0.136	SeasonAway
192.168.0.137	MotherThroughout
192.168.0.138	NoteLeg
192.168.0.139	WaitMyself
192.168.0.140	PullScore
192.168.0.141	SitNear
192.168.0.142	ReachResearch
192.168.0.143	BornThousand
192.168.0.144	SocialRemember
192.168.0.145	PositionSpecial
192.168.0.146	DespiteRich
192.168.0.147	EveryTogether
192.168.0.148	StyleSay
192.168.0.149	PastFirst
192.168.0.150	MindMiddle
192.168.0.151	PainHospital
192.168.0.152	PutClaim
192.168.0.153	TrialCatch
192.168.0.154	WeekAllow
192.168.0.155	EasyStore
192.168.0.156	DropWorker
192.168.0.157	AgreeSomebody
192.168.0.158	WithCost
192.168.0.159	QuicklyHeat
192.168.0.160	ExistGood
192.168.0.161	ThemLater
192.168.0.162	TownCamera
192.168.0.163	LowPersonal
192.168.0.164	ExecutiveMeeting
192.168.0.165	DescribeFood
192.168.0.166	FarExplain
192.168.0.167	ProduceCharge
192.168.0.168	ManagementTheory
192.168.0.169	TenWhole
192.168.0.170	AlwaysProduction
192.168.0.171	ActivityPartner
192.168.0.172	AlmostEffect
192.168.0.173	CivilAcross
192.168.0.174	StepWould
192.168.0.175	KitchenAgency
192.168.0.176	BusinessCapital
192.168.0.177	YoungFront
192.168.0.178	ContinueMy
192.168.0.179	TryIndustry
192.168.0.180	BabyLook
192.168.0.181	CreateReturn
192.168.0.182	HoweverDecide
192.168.0.183	HistoryYes
192.168.0.184	SuccessHouse
192.168.0.185	TableHusband
192.168.0.186	AndLong
192.168.0.187	ShareHead
192.168.0.188	IdentifySubject
192.168.0.189	ClearLegal
192.168.0.190	DiscussWorry
192.168.0.191	LetWord
192.168.0.192	SortDeep
192.168.0.193	SixPolitics
192.168.0.194	WeProblem
192.168.0.195	YearStar
192.168.0.196	FormerEat
192.168.0.197	ReflectBook
192.168.0.198	ResponseAddress
192.168.0.199	RoleFinal
192.168.0.200	StockSometimes
192.168.0.201	OnlyFall
192.168.0.202	TermYet
192.168.0.203	GreenShake
192.168.0.204	ReasonPrivate
192.168.0.205	HimDream
192.168.0.206	WhoLeave
192.168.0.207	BuyLife
192.168.0.208	DetailCall
192.168.0.209	ConsiderBlack
192.168.0.210	CurrentOil
192.168.0.211	NumberSuffer
192.168.0.212	SincePaper
192.168.0.213	ManageMeasure
192.168.0.214	DrawTonight
192.168.0.215	GirlSecurity
192.168.0.216	DoctorAdd
192.168.0.217	FiveEconomy
192.168.0.218	LearnSurface
192.168.0.219	StructureSimilar
192.168.0.220	TimeSerious
192.168.0.221	GlassAbility
192.168.0.222	WeightTrade
192.168.0.223	MarketReality
192.168.0.224	UnderOnce
192.168.0.225	ClearlyWrong
192.168.0.226	AgainstDuring
192.168.0.227	PlayerCar
192.168.0.228	StartBelieve
192.168.0.229	CulturalComputer
192.168.0.230	MemoryElection
192.168.0.231	WhileArgue
192.168.0.232	OwnerProbably
192.168.0.233	TraditionalPresent
192.168.0.234	ToughSupport
192.168.0.235	CouldHuman
192.168.0.236	ThatEither
192.168.0.237	MovieLead
192.168.0.238	FinancialPoint
192.168.0.239	WantEffort
192.168.0.240	RoomName
192.168.0.241	MrSister
192.168.0.242	LeftMajor
192.168.0.243	NearlyAccount
192.168.0.244	EveningEverything
192.168.0.245	EnterLetter
192.168.0.246	DeathSide
192.168.0.247	GreatEver
192.168.0.248	HoldStation
192.168.0.249	ProfessionalGo
192.168.1.2	EnoughPlan
192.168.1.3	CampaignField
192.168.1.4	DecisionDefense
192.168.1.5	SuccessfulSection
192.168.1.6	IdeaEveryone
192.168.1.7	RatherReduce
192.168.1.8	SexEntire
192.168.1.9	BrotherAt
192.168.1.10	NewApply
192.168.1.11	RuleHuge
192.168.1.12	NightAuthor
192.168.1.13	SeatCover
192.168.1.14	ToAudience
192.168.1.15	JobCompare
192.168.1.16	OccurSenior
192.168.1.17	AvailableTop
192.168.1.18	SomePolice
192.168.1.19	StuffMrs
192.168.1.20	ExpertDown
192.168.1.21	FreeProfessor
192.168.1.22	IChoice
192.168.1.23	HimselfPublic
192.168.1.24	AgreementCard
192.168.1.25	LayBegin
192.168.1.26	EspeciallyHand
192.168.1.27	UsuallyAppear
192.168.1.28	SingleAgent
192.168.1.29	TheirAbove
192.168.1.30	ItPlay
192.168.1.31	WomanRate
192.168.1.32	InformationNice
192.168.1.33	CertainlyCollege
192.168.1.34	RaiseArm
192.168.1.35	FullHere
192.168.1.36	WayCut
192.168.1.37	FinishCome
192.168.1.38	EdgeEast
192.168.1.39	TellTree
192.168.1.40	AnythingMean
192.168.1.41	HeartMore
192.168.1.42	UpSuch
192.168.1.43	CultureCommunity
192.168.1.44	SeekOnto
192.168.1.45	LanguageVoice
192.168.1.46	ColorMan
192.168.1.47	SenseEverybody
192.168.1.48	PatternSee
192.168.1.49	CarryPlant
192.168.1.50	ConditionTurn
192.168.1.51	WideBe
192.168.1.52	DemocraticDecade
192.168.1.53	KidPurpose
192.168.1.54	PowerThere
192.168.1.55	CenterWestern
192.168.1.56	ExactlyPressure
192.168.1.57	CustomerKeep
192.168.1.58	ResponsibilityCity
192.168.1.59	TowardWin
192.168.1.60	MentionSure
192.168.1.61	SomethingBecome
192.168.1.62	WorldAnyone
192.168.1.63	SpecificCrime
192.168.1.64	ArticleBody
192.168.1.65	ChangeNot
192.168.1.66	FindMust
192.168.1.67	WifeBad
192.168.1.68	BeyondBig
192.168.1.69	FineStatement
192.168.1.70	WindowTreatment
192.168.1.71	BreakExample
192.168.1.72	DealPretty
192.168.1.73	CareerAlso
192.168.1.74	AbleDoor
192.168.1.75	FourWrite
192.168.1.76	CollectionCase
192.168.1.77	PartyShould
192.168.1.78	ThreatPerformance
192.168.1.79	PictureAmerican
192.168.1.80	DevelopmentMaintain
192.168.1.81	EnvironmentalNothing
192.168.1.82	ThirdMatter
192.168.1.83	ExperienceLess
192.168.1.84	RiseSystem
192.168.1.85	EachEye
192.168.1.86	ResultWork
192.168.1.87	DiseasePrice
192.168.1.88	HomeHappen
192.168.1.89	FearStory
192.168.1.90	StrongSecond
192.168.1.91	IndeedRed
192.168.1.92	FactWest
192.168.1.93	AgainCause
192.168.1.94	SpendTeach
192.168.1.95	BetterLawyer
192.168.1.96	LawAnalysis
192.168.1.97	ListenVarious
192.168.1.98	BeautifulPeriod
192.168.1.99	FatherRecord
192.168.1.100	StudyKill
192.168.1.101	CountryBoard
192.168.1.102	SuddenlyAffect
192.168.1.103	SignRisk
192.168.1.104	HaveSound
192.168.1.105	WarAccept
192.168.1.106	YouFeel
192.168.1.107	CancerReligious
192.168.1.108	BarSong
192.168.1.109	InvolveLine
192.168.1.110	SouthFast
192.168.1.111	SocietySon
192.168.1.112	DesignMaterial
192.168.1.113	BlueForget
192.168.1.114	OhExpect
192.168.1.115	CourseStay
192.168.1.116	GuessMiss
192.168.1.117	FigureRemain
192.168.1.118	ByAsk
192.168.1.119	WatchOwn
192.168.1.120	UsAmong
192.168.1.121	MonthPainting
192.168.1.122	RangePhysical
192.168.1.123	NatureApproach
192.168.1.124	DayBill
192.168.1.125	CupVote
192.168.1.126	DrugOperation
192.168.1.127	SetCentral
192.168.1.128	MediaWriter
192.168.1.129	FilmTravel
192.168.1.130	TheEducation
192.168.1.131	PartPM
192.168.1.132	HappyShe
192.168.1.133	StandChild
192.168.1.134	FewSpring
192.168.1.135	OfficeInstead
192.168.1.136	PopularSea
192.168.1.137	SpeakVisit
192.168.1.138	GroundLove
192.168.1.139	LevelThemselves
192.168.1.140	SignificantServe
192.168.1.141	AnswerAct
192.168.1.142	OverYard
192.168.1.143	ThoseWind
192.168.1.144	FlyNo
192.168.1.145	OpenGame
192.168.1.146	InterestYourself
192.168.1.147	PrepareYour
192.168.1.148	TwoHis
192.168.1.149	FillHealth
192.168.1.150	NewspaperIn
192.168.1.151	OptionRight
192.168.1.152	AdministrationOffer
192.168.1.153	GetAttention
192.168.1.154	PeaceGeneration
192.168.1.155	TaxSimply
192.168.1.156	ForwardInternational
192.168.1.157	SkillEconomic
192.168.1.158	HotShoulder
192.168.1.159	BuildingLike
192.168.1.160	AreaToday
192.168.1.161	OffThrough
192.168.1.162	SpaceTV
192.168.1.163	VictimRun
192.168.1.164	ImpactRead
192.168.1.165	ThrowMany
192.168.1.166	MeetImportant
192.168.1.167	ScientistMission
192.168.1.168	ProjectContain
192.168.1.169	ProductBall
192.168.1.170	PresidentNow
192.168.1.171	FinallyHer
192.168.1.172	StopOut
192.168.1.173	SellFail
192.168.1.174	DriveMoney
192.168.1.175	WishStaff
192.168.1.176	FireBag
192.168.1.177	HeAhead
192.168.1.178	TaskTechnology
192.168.1.179	LargeMinute
192.168.1.180	OkFocus
192.168.1.181	WearProgram
192.168.1.182	ActuallySoldier
192.168.1.183	LaughType
192.168.1.184	BedEmployee
192.168.1.185	WhereDaughter
192.168.1.186	ChairOften
192.168.1.187	RegionEstablish
192.168.1.188	SceneBring
192.168.1.189	ControlSimple
192.168.1.190	TendGun
192.168.1.191	PageMight
192.168.1.192	GasFish
192.168.1.193	PatientThought
192.168.1.194	MorningHit
192.168.1.195	CloseFloor
192.168.1.196	ChallengeMedical
192.168.1.197	LeastMain
192.168.1.198	MoveTeacher
192.168.1.199	VeryMay
192.168.1.200	AgoRepresent
192.168.1.201	ForData
192.168.1.202	NextMost
192.168.1.203	ProcessAssume
192.168.1.204	SizeService
192.168.1.205	ThisList
192.168.1.206	HotelFeeling
192.168.1.207	AdultCitizen
192.168.1.208	SevenAlready
192.168.1.209	BothPerhaps
192.168.1.210	PhoneAuthority
192.168.1.211	SameGarden
192.168.1.212	LightSkin
192.168.1.213	BenefitHalf
192.168.1.214	PlaceNecessary
192.168.1.215	RevealN'T
192.168.1.216	ElseArtist
192.168.1.217	AmountSafe
192.168.1.218	TheyParticularly
192.168.1.219	MovementFrom
192.168.1.220	CommonHerself
192.168.1.221	RoadCertain
192.168.1.222	TrueFace
192.168.1.223	ParticipantMaybe
192.168.1.224	InterviewUntil
192.168.1.225	GroupStage
192.168.1.226	ConsumerNotice
192.168.1.227	InstitutionCandidate
192.168.1.228	ArtJoin
192.168.1.229	IssueEven
192.168.1.230	AttackFight
192.168.1.231	WithinStrategy
192.168.1.232	WhomPolicy
192.168.1.233	RockWhatever
192.168.1.234	FundStill
192.168.1.235	MillionDiscussion
192.168.1.236	YeahDog
192.168.1.237	RequireLive
192.168.1.238	ButMajority
192.168.1.239	NorRealize
192.168.1.240	NoneSuggest
192.168.1.241	RespondGuy
192.168.1.242	SeemUse
192.168.1.243	ReadyMe
192.168.1.244	FriendThank
192.168.1.245	PickDebate
192.168.1.246	SmallSmile
192.168.1.247	TheseIndicate
192.168.1.248	AvoidModel
192.168.1.249	ArriveIncluding

Sources

1000 most common words in English - https://www.ef.co.nz/english-resources/english-vocabulary/top-1000-words/

Author

Rohan Molloy

View Comments