The domain is the set of all numbers. The range is also the set of all real numbers.
Why is this the case? Because the line extends forever in both directions along the x and y axis. We can plug in any x value and solve for y, or vice versa, and we don't have any restrictions for the input or output.
-----------------------
To write "the set of all real numbers" in interval notation, you would write
This is the interval from negative infinity to positive infinity, spanning the entire real number line.